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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin979
RA = 174.075, Dec = 34.129
tmin = 493084801, tmax = 493344001
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='950089', job_status='RUN', time_executed='2021-09-04 05:07:13.826725', time_epoch_executed='1630757233.83' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950089/ft1_4FGL_J1136.2+3407_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950089/ft2_4FGL_J1136.2+3407_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950089/ft1_4FGL_J1136.2+3407_daily_bin979.fits outfile=/scratch/kocevski/950089/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin979.fits ra=174.075 dec=34.129 rad=12.0 tmin=493084801.0 tmax=493344001.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.57
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950089/ft1_filtered_4FGL_J1136.2+3407_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/950089/ft2_4FGL_J1136.2+3407_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/950089/ltcube_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.fits outfile=/scratch/kocevski/950089/expmap_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.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/950089/ltcube_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.fits
.....................!
real 189.93
user 184.64
sys 4.80

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/950089/ft1_filtered_4FGL_J1136.2+3407_daily_bin979.fits scfile=/scratch/kocevski/950089/ft2_4FGL_J1136.2+3407_daily_bin979.fits outfile=/scratch/kocevski/950089/cmap_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950089/ft1_filtered_4FGL_J1136.2+3407_daily_bin979.fits scfile=/scratch/kocevski/950089/ft2_4FGL_J1136.2+3407_daily_bin979.fits outfile=/scratch/kocevski/950089/cmap_HighResolution_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .72074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6106       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60674E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98502       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .78814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31639       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2767       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6074       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6641       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7564       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.174       1.0000         .10000E-03   10000.    
    25 'norm      '    18.601       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8518       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4461       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93248       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91826       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=   4773.515     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3964 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.659        .31943E-06** at limit **
   2  Prefactor     .10000E-03    122.68       -.14235E-05** at limit **
   3  Prefactor     .10000E-03    6.1226        .37798E-07** at limit **
   4  norm          .72067        .27995        .17092E-07    .11192E-02
   5  Prefactor     .48008        3.0974        .74361E-06   -.87237E-04
   6  Prefactor     .10000E-03    8.8811        .32883E-06** at limit **
   7  Prefactor     .10000E-03    8.5805        .22473E-06** at limit **
   8  norm          7.6085        12.887        .48949E-06    .17923E-03
   9  norm          .10000E-03    5.7730       -.36281E-07** at limit **
  10  Prefactor     .10000E-03    .54183        .32884E-07** at limit **
  11  Prefactor     17.072        17.673       -.21321E-07    .19257E-04
  12  Prefactor     .10000E-03    107.07        .72911E-05** at limit **
  13  norm          1.0672        1.3805       -.27215E-07   -.16961E-04
  14  Prefactor     .97723        26.163        .10202E-04   -.49192E-04
  15  Prefactor     .10000E-03    1.2898       -.61711E-07** at limit **
  16  Prefactor     .10000E-03    12.963        .59731E-07** at limit **
  17  norm          .78816        .75275        .15523E-06    .13326E-02
  18  Prefactor     .10000E-03    9.6560        .31878E-08** at limit **
  19  Prefactor     .31498        1.3194        .17370E-06   -.98221E-04
  20  norm          1.2781        1.4920        .13181E-06   -.51180E-03
  21  Prefactor     3.5997        28.949        .82604E-06    .37100E-04
  22  Prefactor     9.6554        30.249       -.90916E-06   -.10323E-04
  23  norm          2.7562        1.2262       -.71129E-08    .60075E-04
  24  Prefactor     26.168        31.455       -.63280E-06   -.37470E-04
  25  norm          18.600        5.4481        .35808E-07    .93786E-04
  26  Prefactor     5.8514        6.1736        .18977E-07    .20987E-04
  27  Prefactor     1.4463        3.1654       -.11150E-06   -.74553E-04
  28  Prefactor     .10000E-03    .76135        .25986E-08** at limit **
  29  Normalizat    .93248        .18318       -.26124E-08    .50463E-03
  30  Prefactor     .91831        .20966        .56207E-06    .41763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.720673
  Prefactor  = 0.480082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.60852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0716
  Prefactor  = 0.0001
  norm       = 1.06722
  Prefactor  = 0.977225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.788164
  Prefactor  = 0.0001
  Prefactor  = 0.314976
  norm       = 1.27814
  Prefactor  = 3.59974
  Prefactor  = 9.65541
  norm       = 2.75621
  Prefactor  = 26.1679
  norm       = 18.6002
  Prefactor  = 5.85144
  Prefactor  = 1.44626
  Prefactor  = 0.0001
  Normalizat = 0.932482
  Prefactor  = 0.918306
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.515     FROM HESSE     STATUS=OK           598 CALLS     4562 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    122.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1320        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .72067        .27970        .21964E-04   -1.5538    
   5  Prefactor     .48008        5.5009        .21557E-02   -1.5569    
   6  Prefactor     .10000E-03    8.9127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6085        12.883        .14537E-03   -1.5156    
   9  norm          .10000E-03    5.8091        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .54356        .49642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.072        17.670        .48467E-03   -1.4881    
  12  Prefactor     .10000E-03    106.27        .47248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0672        1.3445        .89311E-04   -1.5501    
  14  Prefactor     .97723        27.243        .42386E-02   -1.5510    
  15  Prefactor     .10000E-03    1.2938        .76640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .78816        .72148        .56208E-03   -1.5530    
  18  Prefactor     .10000E-03    9.7021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .31498        2.1624        .14981E-02   -1.5596    
  20  norm          1.2781        10.541        .19659E-02   -1.5482    
  21  Prefactor     3.5997        28.688        .21274E-03   -1.5328    
  22  Prefactor     9.6554        30.901        .12891E-03   -1.5086    
  23  norm          2.7562        1.2232        .49182E-04   -1.5376    
  24  Prefactor     26.168        31.479        .78302E-04   -1.4684    
  25  norm          18.600        5.3587        .72735E-04   -1.4845    
  26  Prefactor     5.8514        6.1731        .16602E-03   -1.5224    
  27  Prefactor     1.4463        3.0918        .15233E-03   -1.5467    
  28  Prefactor     .10000E-03    .76823        .58848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93248        .21273        .22323E-03   -.95328    
  30  Prefactor     .91831        .24709        .27011E-03   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54491e-08
Minuit parameter uncertainties:
  1  0.000173741
  2  0.000441912
  3  6.91758e-06
  4  0.2797
  5  3.2502
  6  5.94093e-05
  7  6.90558e-06
  8  12.8879
  9  1.40052e-05
  10  5.18258e-07
  11  17.6757
  12  0.000138191
  13  1.34456
  14  10.3241
  15  5.99588e-06
  16  5.0667e-06
  17  0.721484
  18  2.04043e-05
  19  1.65042
  20  7.34255
  21  20.3373
  22  30.9517
  23  1.22324
  24  31.4986
  25  5.35883
  26  6.17381
  27  3.0921
  28  8.07335e-08
  29  0.212923
  30  0.247395
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.183e-01  2.474e-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.325e-01  2.129e-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: 4.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950089/likelihoodResults_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.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) = 4773.51888072
delta logL = -0.0036067597448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4773.51527365
delta logL = 3.04756213154e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5380       1.0000          .0000       10.000    
     3 'Normalizat'    .93248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91833       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=   4773.515     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.308        .77390E-02** at limit **
   2  Index         1.9718        5.7021        .50000        .66841E-06
   3  Normalizat    .93248        .14271E-01    .22323E-03   -.32225E-03
   4  Prefactor     .91830        .17243E-01    .27011E-03   -.25763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97183
  Normalizat = 0.93248
  Prefactor  = 0.918305
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.515     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.81        .85014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9718        5.6003        .50000       -.65056    
   3  Normalizat    .93248        .44663E-01    .44647E-04   -.95328    
   4  Prefactor     .91830        .53963E-01    .54023E-04   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.34408e-09
Minuit parameter uncertainties:
  1  0.000138111
  2  730.872
  3  0.0446649
  4  0.053966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950089': 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) = 4773.51526679
delta logL = 7.1696622399e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.381e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.972e+00  7.309e+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:  9.183e-01  5.397e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.325e-01  4.466e-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/950089/cmap_HighResolution_493084801_493344001_4FGL_J1136.2+3407_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-04 05:19:59.842139', job_id='950089', GAL2='0.92', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630757999.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='979' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:19:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 950089: <4FGL_J1136.2+3407_daily_bin979> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin979> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:59 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:07:01 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:07:01 2021
Terminated at Sat Sep  4 05:20:00 2021
Results reported at Sat Sep  4 05:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin979 174.075 34.129 493084801 493344001 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

