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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin838
RA = 174.075, Dec = 34.129
tmin = 456537601, tmax = 456796801
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='949878', job_status='RUN', time_executed='2021-09-04 05:06:51.168443', time_epoch_executed='1630757211.17' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949878/ft1_4FGL_J1136.2+3407_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949878/ft2_4FGL_J1136.2+3407_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949878/ft1_4FGL_J1136.2+3407_daily_bin838.fits outfile=/scratch/kocevski/949878/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin838.fits ra=174.075 dec=34.129 rad=12.0 tmin=456537601.0 tmax=456796801.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.29
user 4.99
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949878/ft1_filtered_4FGL_J1136.2+3407_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/949878/ft2_4FGL_J1136.2+3407_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/949878/ltcube_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.fits outfile=/scratch/kocevski/949878/expmap_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.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/949878/ltcube_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.fits
.....................!
real 190.17
user 185.40
sys 4.41

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/949878/ft1_filtered_4FGL_J1136.2+3407_daily_bin838.fits scfile=/scratch/kocevski/949878/ft2_4FGL_J1136.2+3407_daily_bin838.fits outfile=/scratch/kocevski/949878/cmap_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949878/ft1_filtered_4FGL_J1136.2+3407_daily_bin838.fits scfile=/scratch/kocevski/949878/ft2_4FGL_J1136.2+3407_daily_bin838.fits outfile=/scratch/kocevski/949878/cmap_HighResolution_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4867       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.064       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8957       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6892       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2622       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.019       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.7236       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7745       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56759       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=   6916.195     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3870 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3016        .47250E-06** at limit **
   2  Prefactor     .10000E-03    73.454       -.25247E-04** at limit **
   3  Prefactor     6.4868        6.2797       -.13463E-06   -.55063E-05
   4  norm          3.2621        .51578        .10429E-07    .85932E-03
   5  Prefactor     .10000E-03    .75523        .30499E-07** at limit **
   6  Prefactor     .10000E-03    15.355       -.49799E-05** at limit **
   7  Prefactor     .10000E-03    11.608       -.92040E-06** at limit **
   8  norm          28.053        18.652       -.20698E-06    .47770E-04
   9  norm          1.7683        15.019       -.26575E-05   -.32875E-03
  10  Prefactor     .10000E-03    1.7302       -.24270E-06** at limit **
  11  Prefactor     .10000E-03    27.520       -.15793E-04** at limit **
  12  Prefactor     .10000E-03    17.432        .55862E-05** at limit **
  13  norm          1.8958        2.8076       -.76571E-06   -.72771E-03
  14  Prefactor     16.072        13.463        .30909E-07   -.31584E-03
  15  Prefactor     3.6111        6.1861        .60798E-05   -.78659E-03
  16  Prefactor     .10000E-03    70.905       -.12975E-04** at limit **
  17  norm          2.5971        1.5107       -.16592E-07   -.38203E-03
  18  Prefactor     3.1291        35.698       -.48029E-05   -.11284E-03
  19  Prefactor     3.6900        2.0091        .24413E-06   -.22526E-03
  20  norm          .10000E-03    4.0791       -.24668E-07** at limit **
  21  Prefactor     .10001E-03    53.634        .37354E-04** at limit **
  22  Prefactor     .10000E-03    35.956        .45385E-05** at limit **
  23  norm          6.2627        1.4655       -.10232E-08   -.10021E-02
  24  Prefactor     .10000E-03    17.082        .46628E-05** at limit **
  25  norm          16.019        3.6445        .57409E-07   -.18063E-03
  26  Prefactor     6.7241        6.2494       -.94891E-06   -.21614E-03
  27  Prefactor     1.7745        1.5361        .81482E-08   -.46624E-04
  28  Prefactor     .10000E-03    .57890       -.15286E-07** at limit **
  29  Normalizat    1.0841        .18636       -.70080E-06   -.28876E-03
  30  Prefactor     .56780        .18881       -.46355E-06   -.18906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48678
  norm       = 3.26212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.0535
  norm       = 1.76835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89579
  Prefactor  = 16.0719
  Prefactor  = 3.61107
  Prefactor  = 0.0001
  norm       = 2.59707
  Prefactor  = 3.12914
  Prefactor  = 3.69004
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 6.26271
  Prefactor  = 0.0001
  norm       = 16.019
  Prefactor  = 6.72409
  Prefactor  = 1.77446
  Prefactor  = 0.0001
  Normalizat = 1.08412
  Prefactor  = 0.567802
 **********
 **   18 **HESSE 
 **********

 FCN=   6916.195     FROM HESSE     STATUS=OK           582 CALLS     4452 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    73.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4868        6.2782        .15758E-03   -1.5199    
   4  norm          3.2621        .51633        .22764E-04   -1.5347    
   5  Prefactor     .10000E-03    .76340        .70525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.053        18.644        .75625E-04   -1.4648    
   9  norm          1.7683        15.183        .31517E-03   -1.5442    
  10  Prefactor     .10000E-03    1.7578        .21268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8958        2.7687        .15563E-03   -1.5433    
  14  Prefactor     16.072        13.430        .99919E-04   -1.4906    
  15  Prefactor     3.6111        6.0296        .21270E-03   -1.5328    
  16  Prefactor     .10000E-03    71.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5971        1.4987        .71084E-04   -1.5386    
  18  Prefactor     3.1291        34.888        .22886E-03   -1.5354    
  19  Prefactor     3.6900        1.9805        .75442E-04   -1.5324    
  20  norm          .10000E-03    4.0839        .16403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    53.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2627        1.4629        .45620E-04   -1.5207    
  24  Prefactor     .10000E-03    17.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.019        3.6410        .70886E-04   -1.4907    
  26  Prefactor     6.7241        6.2690        .15475E-03   -1.5189    
  27  Prefactor     1.7745        1.5387        .90671E-04   -1.5442    
  28  Prefactor     .10000E-03    .58412        .61751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0841        .21390        .23776E-03   -.90263    
  30  Prefactor     .56780        .21344        .35638E-03   -1.0896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7073e-09
Minuit parameter uncertainties:
  1  3.31827e-06
  2  2.25926e-05
  3  6.27886
  4  0.516329
  5  1.49212e-06
  6  1.20427e-05
  7  5.16172e-06
  8  18.6477
  9  10.3663
  10  2.69856e-05
  11  3.6239e-05
  12  0.000108711
  13  2.76894
  14  13.4321
  15  6.03061
  16  9.37456e-05
  17  1.49877
  18  20.9119
  19  1.98058
  20  1.61335e-06
  21  0.0011042
  22  5.00042e-06
  23  1.46295
  24  3.46086e-05
  25  3.6411
  26  6.26966
  27  1.53878
  28  4.80835e-07
  29  0.214066
  30  0.213743
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.611e+00  6.031e+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:  5.678e-01  2.137e-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.084e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949878/likelihoodResults_456537601_456796801_4FGL_J1136.2+3407_daily_bin838.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) = 6915.50934951
delta logL = 0.685939159271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6915.45070648
delta logL = 0.744582188994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65182       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5590       1.0000          .0000       10.000    
     3 'Normalizat'    1.0092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62904       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=   6915.451     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      271 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65125        7.3050        .11124E-01    .13047E-02
   2  Index         4.5597        3.1983        .13321        .14669E-03
   3  Normalizat    1.0092        .38879E-01    .46282E-01    .11959E-04
   4  Prefactor     .62898        .43778E-01    .76785E-01    .33349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.651251
  Index      = 4.55965
  Normalizat = 1.00921
  Prefactor  = 0.628983
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.451     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      306 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65125        18.374        .50501E-03   -1.5547    
   2  Index         4.5597        7.2556        .65145E-02   -.88184E-01
   3  Normalizat    1.0092        .14607        .24515E-03   -.92723    
   4  Prefactor     .62898        .16265        .34000E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16241e-07
Minuit parameter uncertainties:
  1  6.92016
  2  6.68984
  3  0.146127
  4  0.162773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949878': 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) = 6915.4507064
delta logL = 0.744582265466

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.513e-01  6.920e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  4.560e+00  6.690e+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:  6.290e-01  1.628e-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.009e+00  1.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 174.075 34.129
Photon Index (Free Index): 4.56 +/- 6.69
Photon Flux (Free Index): 7.79e-08 +/- 6.07e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.31e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='7.45e-01', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-04 05:23:07.840552', photon_index_error2='6.69', photon_index2='4.56', ts='0.46', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.31e-05', EG='1.08', time_epoch_completed='1630758187.84', return_code='0', job_id='949878', GAL2='0.63', EG2='1.01', return_code2='102', photon_flux_error2='6.07e-08', ts2='2.10', photon_index='2.55' WHERE bin_id='838' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 949878: <4FGL_J1136.2+3407_daily_bin838> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin838> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:40 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:41 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:41 2021
Terminated at Sat Sep  4 05:23:08 2021
Results reported at Sat Sep  4 05:23:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin838 174.075 34.129 456537601 456796801 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 :                                   972.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   999 sec.
    Turnaround time :                            988 sec.

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

