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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin687
RA = 174.075, Dec = 34.129
tmin = 417398401, tmax = 417657601
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='948134', job_status='RUN', time_executed='2021-09-04 05:04:25.013079', time_epoch_executed='1630757065.01' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948134/ft1_4FGL_J1136.2+3407_daily_bin687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948134/ft1_4FGL_J1136.2+3407_daily_bin687.fits outfile=/scratch/kocevski/948134/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin687.fits ra=174.075 dec=34.129 rad=12.0 tmin=417398401.0 tmax=417657601.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 4.37
user 4.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948134/ft1_filtered_4FGL_J1136.2+3407_daily_bin687.fits" evtable="EVENTS" scfile=/scratch/kocevski/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits sctable="SC_DATA" outfile=/scratch/kocevski/948134/ltcube_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.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/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits
.....................!
real 9.63
user 9.19
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948134/ft1_filtered_4FGL_J1136.2+3407_daily_bin687.fits evtable="EVENTS" scfile=/scratch/kocevski/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits sctable="SC_DATA" expcube=/scratch/kocevski/948134/ltcube_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.fits outfile=/scratch/kocevski/948134/expmap_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.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/948134/ltcube_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.fits
.....................!
real 147.70
user 142.93
sys 3.98

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/948134/ft1_filtered_4FGL_J1136.2+3407_daily_bin687.fits scfile=/scratch/kocevski/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits outfile=/scratch/kocevski/948134/cmap_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.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.46
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948134/ft1_filtered_4FGL_J1136.2+3407_daily_bin687.fits scfile=/scratch/kocevski/948134/ft2_4FGL_J1136.2+3407_daily_bin687.fits outfile=/scratch/kocevski/948134/cmap_HighResolution_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4583       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4261       1.0000         .10000E-03   10000.    
    13 'norm      '    .12604E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6591       1.0000         .10000E-03   10000.    
    20 'norm      '    21.749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.0935       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.523       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.231       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49363       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80058       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3082       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=   5560.318     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3913 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9052       -.27744E-06** at limit **
   2  Prefactor     82.056        138.01        .98184E-05    .59900E-04
   3  Prefactor     .10000E-03    5.1988        .57977E-07** at limit **
   4  norm          2.4584        .46960       -.35032E-08   -.61078E-03
   5  Prefactor     .10000E-03    2.2758        .16077E-06** at limit **
   6  Prefactor     .10000E-03    6.9647        .26899E-06** at limit **
   7  Prefactor     .10000E-03    11.018        .87101E-07** at limit **
   8  norm          .10000E-03    11.002        .17709E-08** at limit **
   9  norm          .10000E-03    5.4658        .86872E-07** at limit **
  10  Prefactor     4.1759        3.8188       -.52610E-06   -.37866E-03
  11  Prefactor     .10000E-03    183.18        .31711E-05** at limit **
  12  Prefactor     1.4144        101.95        .11935E-05    .17363E-04
  13  norm          .10000E-03    2.0906       -.59259E-07** at limit **
  14  Prefactor     .10000E-03    7.8841       -.50440E-06** at limit **
  15  Prefactor     2.7370        6.8006        .51690E-05   -.22606E-03
  16  Prefactor     .10000E-03    105.80        .23756E-05** at limit **
  17  norm          9.5951        2.2125        .13053E-07   -.76576E-04
  18  Prefactor     .10000E-03    7.7744        .49302E-06** at limit **
  19  Prefactor     3.6589        2.4415        .56021E-07   -.10487E-03
  20  norm          21.746        13.671        .29869E-06    .82335E-04
  21  Prefactor     .10000E-03    25.293        .23243E-06** at limit **
  22  Prefactor     .10000E-03    127.67       -.50962E-05** at limit **
  23  norm          3.0935        1.6761        .12249E-07   -.16430E-03
  24  Prefactor     .10000E-03    22.534        .66324E-07** at limit **
  25  norm          20.521        6.3105        .57998E-07   -.42482E-04
  26  Prefactor     16.230        10.876        .11221E-06   -.14763E-04
  27  Prefactor     .10000E-03    2.3818       -.10776E-06** at limit **
  28  Prefactor     .49082        3.1291        .50216E-06   -.11219E-03
  29  Normalizat    .80074        .21857       -.10134E-05   -.80301E-04
  30  Prefactor     1.3081        .23919       -.10527E-05   -.13010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 82.0557
  Prefactor  = 0.0001
  norm       = 2.4584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.17588
  Prefactor  = 0.000100001
  Prefactor  = 1.41439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73704
  Prefactor  = 0.0001
  norm       = 9.59512
  Prefactor  = 0.0001
  Prefactor  = 3.65891
  norm       = 21.746
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.09346
  Prefactor  = 0.0001
  norm       = 20.5213
  Prefactor  = 16.2301
  Prefactor  = 0.0001
  Prefactor  = 0.490822
  Normalizat = 0.800736
  Prefactor  = 1.30807
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.318     FROM HESSE     STATUS=OK           584 CALLS     4497 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     82.056        138.47        .22162E-03   -1.3894    
   3  Prefactor     .10000E-03    5.2082        .16604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4584        .47016        .21527E-04   -1.5394    
   5  Prefactor     .10000E-03    2.3226        .10973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.4785        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1759        3.7084        .12513E-03   -1.5299    
  11  Prefactor     .10000E-03    183.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4144        102.50        .36197E-03   -1.5470    
  13  norm          .10000E-03    4.4484        .20208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7370        6.8333        .12305E-02   -1.5377    
  16  Prefactor     .10000E-03    106.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5951        2.2073        .50051E-04   -1.5088    
  18  Prefactor     .10000E-03    7.7824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6589        2.4394        .91473E-04   -1.5325    
  20  norm          21.746        13.682        .85888E-04   -1.4775    
  21  Prefactor     .10000E-03    25.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    128.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0935        1.6730        .67648E-04   -1.5356    
  24  Prefactor     .10000E-03    22.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.521        6.1892        .88413E-04   -1.4802    
  26  Prefactor     16.230        10.877        .99415E-04   -1.4902    
  27  Prefactor     .10000E-03    2.4281        .22387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .49082        5.7411        .23436E-02   -1.5568    
  29  Normalizat    .80074        .25684        .31423E-03   -1.0004    
  30  Prefactor     1.3081        .28408        .29459E-03   -.83067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69002e-08
Minuit parameter uncertainties:
  1  9.70255e-06
  2  139.019
  3  9.06934e-06
  4  0.470159
  5  1.38554e-05
  6  1.37429e-05
  7  6.42346e-06
  8  1.01444e-05
  9  9.28982e-06
  10  3.70859
  11  0.000697145
  12  24.1229
  13  1.02971e-05
  14  3.50784e-05
  15  6.83523
  16  0.00035758
  17  2.20734
  18  2.65597e-05
  19  2.43944
  20  13.6843
  21  4.50382e-05
  22  0.000881193
  23  1.67299
  24  1.76055e-05
  25  6.18942
  26  10.8788
  27  9.65087e-06
  28  3.35735
  29  0.257235
  30  0.284418
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.737e+00  6.835e+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:  1.308e+00  2.844e-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:  8.007e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948134/likelihoodResults_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.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): 0
logL (Free Index) = 5560.31839409
delta logL = 6.52627932141e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.31839363
delta logL = 1.11130339064e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7370       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5545       1.0000          .0000       10.000    
     3 'Normalizat'    .80071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3081       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=   5560.318     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      218 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7344        122.45        .61527E-02    .43886E-03
   2  Index         2.5578        2.8048        .50000       -.44789E-07
   3  Normalizat    .80061        .31078E-01    .71012E-01    .10060E-04
   4  Prefactor     1.3082        .35971E-01    .66598E-01    .25873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73437
  Index      = 2.55777
  Normalizat = 0.800614
  Prefactor  = 1.30817
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.318     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7344        6.8501        .24611E-03   -1.5377    
   2  Index         2.5578        2.0779        .89347E-02   -.51031    
   3  Normalizat    .80061        .24945        .31425E-03   -1.0005    
   4  Prefactor     1.3082        .28674        .29458E-03   -.83064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70746e-13
Minuit parameter uncertainties:
  1  6.8521
  2  2.16577
  3  0.249805
  4  0.287084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948134': 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) = 5560.31839244
delta logL = 2.30375462706e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.734e+00  6.852e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.558e+00  2.166e+00  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:  1.308e+00  2.871e-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:  8.006e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/948134/cmap_HighResolution_417398401_417657601_4FGL_J1136.2+3407_daily_bin687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-04 05:15:00.705179', job_id='948134', GAL2='1.31', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630757700.71', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.30e-06', ts2='0.20', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='687' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 948134: <4FGL_J1136.2+3407_daily_bin687> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin687 174.075 34.129 417398401 417657601 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 :                                   631.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

