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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin709
RA = 174.075, Dec = 34.129
tmin = 423100801, tmax = 423360001
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='948167', job_status='RUN', time_executed='2021-09-04 05:03:53.096168', time_epoch_executed='1630757033.1' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948167/ft1_4FGL_J1136.2+3407_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948167/ft2_4FGL_J1136.2+3407_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948167/ft1_4FGL_J1136.2+3407_daily_bin709.fits outfile=/scratch/kocevski/948167/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin709.fits ra=174.075 dec=34.129 rad=12.0 tmin=423100801.0 tmax=423360001.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.00
user 4.70
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948167/ft1_filtered_4FGL_J1136.2+3407_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/948167/ft2_4FGL_J1136.2+3407_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/948167/ltcube_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.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/948167/ft2_4FGL_J1136.2+3407_daily_bin709.fits
.....................!
real 11.92
user 11.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948167/ft1_filtered_4FGL_J1136.2+3407_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/948167/ft2_4FGL_J1136.2+3407_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/948167/ltcube_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.fits outfile=/scratch/kocevski/948167/expmap_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.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/948167/ltcube_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.fits
.....................!
real 190.07
user 184.48
sys 4.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/948167/ft1_filtered_4FGL_J1136.2+3407_daily_bin709.fits scfile=/scratch/kocevski/948167/ft2_4FGL_J1136.2+3407_daily_bin709.fits outfile=/scratch/kocevski/948167/cmap_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    106.96       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.525       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1309       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25950E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.154       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.113       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.559       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6956       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.588       1.0000         .10000E-03   10000.    
    25 'norm      '    5.5816       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4154       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0558       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4313       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63584       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=   4986.740     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3885 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.531       -.63199E-05** at limit **
   2  Prefactor     106.97        133.78        .13981E-04   -.15543E-04
   3  Prefactor     10.525        13.407        .12556E-05   -.78311E-04
   4  norm          1.1309        .37908        .47545E-07   -.20576E-02
   5  Prefactor     .10000E-03    1.7547        .93317E-07** at limit **
   6  Prefactor     .10009E-03    19.149        .21390E-05** at limit **
   7  Prefactor     .10000E-03    6.6268        .52796E-06** at limit **
   8  norm          16.159        18.825       -.91639E-06   -.26927E-03
   9  norm          .10000E-03    10.464        .49697E-05** at limit **
  10  Prefactor     4.3914        3.7607        .15235E-05   -.63814E-03
  11  Prefactor     .10000E-03    42.150        .96215E-05** at limit **
  12  Prefactor     .10000E-03    7.3344       -.84269E-06** at limit **
  13  norm          8.8290        3.9229       -.73261E-06   -.34188E-03
  14  Prefactor     .10000E-03    5.1630        .31952E-07** at limit **
  15  Prefactor     .10000E-03    1.4736        .61769E-08** at limit **
  16  Prefactor     .10000E-03    26.199       -.31328E-04** at limit **
  17  norm          7.2570        2.2267       -.38004E-05    .17986E-02
  18  Prefactor     .10000E-03    12.283        .12945E-05** at limit **
  19  Prefactor     .10000E-03    .80335        .65316E-07** at limit **
  20  norm          18.108        17.907       -.12970E-04   -.79384E-04
  21  Prefactor     .10000E-03    23.657        .25347E-04** at limit **
  22  Prefactor     32.693        110.18        .20205E-03   -.10415E-04
  23  norm          3.6959        1.8679        .25949E-06   -.51724E-03
  24  Prefactor     23.595        34.806        .91638E-06   -.91920E-04
  25  norm          5.5819        3.5063        .20697E-06   -.46189E-04
  26  Prefactor     2.4172        8.5224       -.47862E-07   -.32087E-03
  27  Prefactor     .10000E-03    .89350        .22304E-07** at limit **
  28  Prefactor     2.0559        2.1387        .16816E-06    .81880E-04
  29  Normalizat    1.4308        .23216       -.73735E-05   -.77132E-04
  30  Prefactor     .63638        .25600        .16197E-05   -.42404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 106.972
  Prefactor  = 10.525
  norm       = 1.13094
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 0.0001
  norm       = 16.159
  norm       = 0.0001
  Prefactor  = 4.39144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.25699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1083
  Prefactor  = 0.0001
  Prefactor  = 32.6931
  norm       = 3.69586
  Prefactor  = 23.5945
  norm       = 5.58186
  Prefactor  = 2.41718
  Prefactor  = 0.0001
  Prefactor  = 2.05588
  Normalizat = 1.43082
  Prefactor  = 0.636378
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.740     FROM HESSE     STATUS=OK           588 CALLS     4473 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     106.97        133.95        .38886E-04   -1.3636    
   3  Prefactor     10.525        13.394        .12350E-03   -1.5059    
   4  norm          1.1309        .37978        .23837E-04   -1.5495    
   5  Prefactor     .10000E-03    1.7728        .91248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    21.968        .83175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6289        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.159        18.824        .99650E-04   -1.4904    
   9  norm          .10000E-03    10.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3914        3.7470        .11456E-03   -1.5289    
  11  Prefactor     .10000E-03    42.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8290        3.9191        .85495E-04   -1.5114    
  14  Prefactor     .10000E-03    5.1717        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4751        .83711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2570        2.2292        .48272E-04   -1.5169    
  18  Prefactor     .10000E-03    12.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .81154        .61798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.108        17.906        .94107E-04   -1.4857    
  21  Prefactor     .10000E-03    23.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.693        110.11        .70224E-04   -1.4564    
  23  norm          3.6959        1.8667        .65137E-04   -1.5323    
  24  Prefactor     23.595        34.823        .82475E-04   -1.4736    
  25  norm          5.5819        3.5045        .10106E-03   -1.5235    
  26  Prefactor     2.4172        8.5010        .26339E-03   -1.5397    
  27  Prefactor     .10000E-03    .89501        .65165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.0559        2.1436        .10206E-03   -1.5421    
  29  Normalizat    1.4308        .27360        .23966E-03   -.79741    
  30  Prefactor     .63638        .29640        .38986E-03   -1.0608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19914e-09
Minuit parameter uncertainties:
  1  2.52871e-05
  2  134.334
  3  13.3974
  4  0.379783
  5  1.31383e-05
  6  0.00287385
  7  6.04582e-06
  8  18.8307
  9  6.26388e-05
  10  3.74718
  11  5.58558e-05
  12  2.18416e-05
  13  3.91925
  14  1.56045e-05
  15  1.80474e-06
  16  2.38957e-05
  17  2.22921
  18  4.57039e-05
  19  5.36373e-06
  20  17.9112
  21  4.80235e-06
  22  110.807
  23  1.86669
  24  34.8527
  25  3.50461
  26  8.5052
  27  1.85025e-06
  28  2.14366
  29  0.273881
  30  0.297132
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.805e-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:  6.364e-01  2.971e-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.431e+00  2.739e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948167/likelihoodResults_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.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) = 4986.74226685
delta logL = -0.00261082187626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4986.73965574
delta logL = 2.84849193122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5402       1.0000          .0000       10.000    
     3 'Normalizat'    1.4308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63636       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=   4986.740     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.188        .84527E-02** at limit **
   2  Index         2.0036        6.7589        .50000        .66134E-06
   3  Normalizat    1.4308        .16854E-01    .23966E-03   -.38357E-03
   4  Prefactor     .63639        .19132E-01    .38986E-03   -.23408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00357
  Normalizat = 1.43081
  Prefactor  = 0.63639
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.740     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .43E-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.31        .92786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0036        5.2957        .50000       -.64261    
   3  Normalizat    1.4308        .51978E-01    .47931E-04   -.79742    
   4  Prefactor     .63639        .59001E-01    .15594E-04   -1.0608    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.28023e-09
Minuit parameter uncertainties:
  1  0.000186022
  2  703.624
  3  0.0519797
  4  0.0590065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948167': 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) = 4986.73964974
delta logL = 6.28667203273e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.860e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.004e+00  7.036e+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:  6.364e-01  5.901e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.431e+00  5.198e-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/948167/cmap_HighResolution_423100801_423360001_4FGL_J1136.2+3407_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-04 05:17:20.709747', job_id='948167', GAL2='0.64', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630757840.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='6.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='709' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 948167: <4FGL_J1136.2+3407_daily_bin709> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin709> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:24 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:01:25 2021
Terminated at Sat Sep  4 05:17:21 2021
Results reported at Sat Sep  4 05:17:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin709 174.075 34.129 423100801 423360001 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 :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

