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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin680
RA = 174.075, Dec = 34.129
tmin = 415584001, tmax = 415843201
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='948124', job_status='RUN', time_executed='2021-09-04 05:03:45.530906', time_epoch_executed='1630757025.53' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948124/ft1_4FGL_J1136.2+3407_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948124/ft1_4FGL_J1136.2+3407_daily_bin680.fits outfile=/scratch/kocevski/948124/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin680.fits ra=174.075 dec=34.129 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.37
user 6.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.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/948124/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/948124/ft1_filtered_4FGL_J1136.2+3407_daily_bin680.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948124/ft1_filtered_4FGL_J1136.2+3407_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/948124/ltcube_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.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/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits
.....................!
real 12.79
user 12.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948124/ft1_filtered_4FGL_J1136.2+3407_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/948124/ltcube_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.fits outfile=/scratch/kocevski/948124/expmap_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.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/948124/ltcube_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.fits
.....................!
real 193.07
user 188.57
sys 4.05

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/948124/ft1_filtered_4FGL_J1136.2+3407_daily_bin680.fits scfile=/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits outfile=/scratch/kocevski/948124/cmap_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948124/ft1_filtered_4FGL_J1136.2+3407_daily_bin680.fits scfile=/scratch/kocevski/948124/ft2_4FGL_J1136.2+3407_daily_bin680.fits outfile=/scratch/kocevski/948124/cmap_HighResolution_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14441E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10852E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    25.890       1.0000         .10000E-03   10000.    
     9 'norm      '    12.538       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74372E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.997       1.0000         .10000E-03   10000.    
    13 'norm      '    .31007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4167       1.0000         .10000E-03   10000.    
    16 'Prefactor '    118.95       1.0000         .10000E-03   10000.    
    17 'norm      '    15.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14487E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8764       1.0000         .10000E-03   10000.    
    20 'norm      '    .93050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72294E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9080       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9039       1.0000         .10000E-03   10000.    
    25 'norm      '    15.725       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7618       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8699       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .29579       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4387       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=   4446.409     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     3565 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.049        36.566       -.54371E-05   -.35349E-03
   2  Prefactor     .87433        7875.2        .63981E-04    .73977E-06
   3  Prefactor     .10000E-03    14.875       -.99704E-07** at limit **
   4  norm          1.7583        .50844        .62178E-07    .46605E-03
   5  Prefactor     .66187        4.5004        .24752E-05    .43210E-05
   6  Prefactor     .10000E-03    8.3633        .97019E-07** at limit **
   7  Prefactor     .10000E-03    8.5762        .55360E-07** at limit **
   8  norm          26.079        18.772        .48445E-06    .24480E-04
   9  norm          12.540        14.246        .84467E-06   -.11494E-04
  10  Prefactor     .10000E-03    1.5556       -.33002E-06** at limit **
  11  Prefactor     .10000E-03    18.234       -.17091E-07** at limit **
  12  Prefactor     20.020        33.603       -.10576E-05   -.27117E-04
  13  norm          .32107        2.1899        .10290E-05   -.17925E-03
  14  Prefactor     3.9902        56.916        .63674E-06    .24698E-04
  15  Prefactor     5.3891        8.5570        .61430E-05   -.62476E-03
  16  Prefactor     113.29        102.21        .22920E-05    .44266E-04
  17  norm          15.450        3.3275        .10332E-06    .50788E-03
  18  Prefactor     .10000E-03    22.869        .13137E-05** at limit **
  19  Prefactor     1.8732        1.7757        .28588E-06    .15229E-03
  20  norm          .10000E-03    12.975        .12235E-06** at limit **
  21  Prefactor     54.477        41.634       -.15626E-05   -.40405E-04
  22  Prefactor     .10000E-03    36.281        .14374E-06** at limit **
  23  norm          3.9074        1.8966        .32429E-06    .47207E-03
  24  Prefactor     8.2402        48.111        .38013E-06   -.37562E-04
  25  norm          15.722        5.3047        .26198E-06    .24591E-03
  26  Prefactor     .10000E-03    3.2898        .15010E-06** at limit **
  27  Prefactor     2.7622        2.4393        .49962E-07    .11698E-03
  28  Prefactor     1.8671        2.5923        .51417E-06    .15196E-03
  29  Normalizat    .29855        .27984       -.23820E-04   -.11935E-03
  30  Prefactor     1.4378        .29169        .86940E-05   -.17890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0492
  Prefactor  = 0.874325
  Prefactor  = 0.0001
  norm       = 1.75826
  Prefactor  = 0.661865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.0789
  norm       = 12.5401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0198
  norm       = 0.321074
  Prefactor  = 3.99024
  Prefactor  = 5.38906
  Prefactor  = 113.287
  norm       = 15.4495
  Prefactor  = 0.0001
  Prefactor  = 1.87324
  norm       = 0.0001
  Prefactor  = 54.4771
  Prefactor  = 0.0001
  norm       = 3.90738
  Prefactor  = 8.24021
  norm       = 15.7222
  Prefactor  = 0.0001
  Prefactor  = 2.76224
  Prefactor  = 1.86709
  Normalizat = 0.298554
  Prefactor  = 1.43779
 **********
 **   18 **HESSE 
 **********

 FCN=   4446.409     FROM HESSE     STATUS=OK           596 CALLS     4161 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.049        37.367        .32494E-03   -1.4474    
   2  Prefactor     .87433        7963.0        .17122E-02   -1.5521    
   3  Prefactor     .10000E-03    14.940        .20500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7583        .50827        .24526E-04   -1.5443    
   5  Prefactor     .66187        7.8205        .24337E-02   -1.5545    
   6  Prefactor     .10000E-03    8.3728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5814        .19072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.079        18.734        .78730E-04   -1.4686    
   9  norm          12.540        14.205        .11313E-03   -1.5000    
  10  Prefactor     .10000E-03    2.5756        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.244        .18600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.020        32.723        .91893E-04   -1.4813    
  13  norm          .32107        2.0972        .18914E-03   -1.5595    
  14  Prefactor     3.9902        53.625        .18741E-03   -1.5308    
  15  Prefactor     5.3891        8.5374        .86329E-03   -1.5244    
  16  Prefactor     113.29        102.33        .36896E-04   -1.3575    
  17  norm          15.450        3.3519        .45726E-04   -1.4922    
  18  Prefactor     .10000E-03    23.157        .20498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8732        1.7674        .83525E-04   -1.5434    
  20  norm          .10000E-03    13.068        .20809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.477        41.248        .54332E-04   -1.4230    
  22  Prefactor     .10000E-03    36.285        .18647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9074        1.8933        .59041E-04   -1.5313    
  24  Prefactor     8.2402        47.904        .13432E-03   -1.5134    
  25  norm          15.722        5.2776        .79151E-04   -1.4915    
  26  Prefactor     .10000E-03    3.3014        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.7622        2.4382        .91287E-04   -1.5376    
  28  Prefactor     1.8671        2.5663        .11733E-03   -1.5435    
  29  Normalizat    .29855        .27493        .46056E-03   -1.2292    
  30  Prefactor     1.4378        .29796        .26541E-03   -.79297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33737e-09
Minuit parameter uncertainties:
  1  37.3898
  2  166.043
  3  6.40722e-05
  4  0.508275
  5  4.55062
  6  2.82487e-05
  7  3.84569e-06
  8  18.7378
  9  14.2091
  10  5.3818e-05
  11  1.82307e-05
  12  32.7527
  13  1.64101
  14  29.2876
  15  8.53933
  16  102.487
  17  3.35194
  18  5.84233e-05
  19  1.76745
  20  1.99604e-05
  21  41.2694
  22  3.86464e-06
  23  1.89329
  24  39.7839
  25  5.27771
  26  1.24067e-05
  27  2.43826
  28  2.56643
  29  0.276183
  30  0.298317
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.389e+00  8.539e+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.438e+00  2.983e-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:  2.986e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948124/likelihoodResults_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.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) = 4445.26938948
delta logL = 1.14004814651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4445.24622375
delta logL = 1.16321387424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61258       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7758       1.0000          .0000       10.000    
     3 'Normalizat'    .23188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4921       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=   4445.246     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      269 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61090        8.8016        .84405E-02    .49389E-03
   2  Index         4.7777        3.6574        .13437        .91095E-04
   3  Normalizat    .23192        .61859E-01    .11753        .50740E-04
   4  Prefactor     1.4922        .74875E-01    .59035E-01   -.15403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.610898
  Index      = 4.77767
  Normalizat = 0.231918
  Prefactor  = 1.49223
 **********
 **   18 **HESSE 
 **********

 FCN=   4445.246     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61090        17.563        .38286E-03   -1.5552    
   2  Index         4.7777        7.3437        .52987E-02   -.44481E-01
   3  Normalizat    .23192        .20566        .51943E-03   -1.2716    
   4  Prefactor     1.4922        .24869        .26099E-03   -.77758    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70013e-10
Minuit parameter uncertainties:
  1  6.55271
  2  6.67342
  3  0.206335
  4  0.248893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948124': 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) = 4445.24622289
delta logL = 1.16321473298

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.109e-01  6.553e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  4.778e+00  6.673e+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.492e+00  2.489e-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:  2.319e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 174.075 34.129
Photon Index (Free Index): 4.78 +/- 6.67
Photon Flux (Free Index): 1.03e-07 +/- 7.89e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.59e-05

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/948124/cmap_HighResolution_415584001_415843201_4FGL_J1136.2+3407_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.16e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-04 05:16:10.548448', photon_index_error2='6.67', photon_index2='4.78', ts='0.54', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.59e-05', EG='0.30', time_epoch_completed='1630757770.55', return_code='0', job_id='948124', GAL2='1.49', EG2='0.23', return_code2='102', photon_flux_error2='7.89e-08', ts2='3.02', photon_index='2.55' WHERE bin_id='680' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 948124: <4FGL_J1136.2+3407_daily_bin680> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin680> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:20 2021
Job was executed on host(s) <bullet0024>, 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:16:11 2021
Results reported at Sat Sep  4 05:16:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin680 174.075 34.129 415584001 415843201 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 :                                   739.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            891 sec.

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

