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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1424
RA = 174.075, Dec = 34.129
tmin = 608428801, tmax = 608688001
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='952917', job_status='RUN', time_executed='2021-09-04 05:16:44.705454', time_epoch_executed='1630757804.71' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952917/ft1_4FGL_J1136.2+3407_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952917/ft2_4FGL_J1136.2+3407_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952917/ft1_4FGL_J1136.2+3407_daily_bin1424.fits outfile=/scratch/kocevski/952917/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1424.fits ra=174.075 dec=34.129 rad=12.0 tmin=608428801.0 tmax=608688001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.95
user 4.70
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952917/ft1_filtered_4FGL_J1136.2+3407_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/952917/ft2_4FGL_J1136.2+3407_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/952917/ltcube_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.fits outfile=/scratch/kocevski/952917/expmap_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.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/952917/ltcube_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.fits
.....................!
real 192.00
user 187.56
sys 4.08

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/952917/ft1_filtered_4FGL_J1136.2+3407_daily_bin1424.fits scfile=/scratch/kocevski/952917/ft2_4FGL_J1136.2+3407_daily_bin1424.fits outfile=/scratch/kocevski/952917/cmap_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952917/ft1_filtered_4FGL_J1136.2+3407_daily_bin1424.fits scfile=/scratch/kocevski/952917/ft2_4FGL_J1136.2+3407_daily_bin1424.fits outfile=/scratch/kocevski/952917/cmap_HighResolution_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.455       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.005       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2529       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25448E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .75783E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2865       1.0000         .10000E-03   10000.    
    20 'norm      '    6.3485       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.861       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.927       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8903       1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.252       1.0000         .10000E-03   10000.    
    25 'norm      '    3.2608       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.574       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3267       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67637       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=   7310.320     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3957 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5934        17.645       -.60026E-06   -.23120E-04
   2  Prefactor     70.539        73.772       -.41846E-07    .48261E-05
   3  Prefactor     21.456        11.576        .10127E-06    .10010E-04
   4  norm          2.1802        .41245       -.12872E-07    .17778E-02
   5  Prefactor     .10000E-03    1.2967       -.22692E-07** at limit **
   6  Prefactor     14.006        22.858        .99215E-06    .17133E-03
   7  Prefactor     .10000E-03    13.422       -.17054E-05** at limit **
   8  norm          9.2524        14.026       -.40844E-06    .99730E-04
   9  norm          6.4799        9.6484        .14897E-05   -.50864E-03
  10  Prefactor     .10000E-03    1.1133       -.28511E-06** at limit **
  11  Prefactor     54.432        39.068        .30462E-05    .63440E-03
  12  Prefactor     .10000E-03    20.144        .28094E-05** at limit **
  13  norm          .10076E-03    1.0639       -.63562E-06** at limit **
  14  Prefactor     .10000E-03    8.2330       -.63880E-06** at limit **
  15  Prefactor     10.141        6.1835       -.12977E-06    .36218E-03
  16  Prefactor     .10000E-03    9.3099        .13501E-05** at limit **
  17  norm          .66155        .91321        .44106E-07    .14745E-03
  18  Prefactor     .10000E-03    5.6859        .98490E-07** at limit **
  19  Prefactor     1.2864        1.6804        .88704E-07   -.16334E-03
  20  norm          6.3480        7.5446        .66737E-06   -.45565E-03
  21  Prefactor     10.861        19.870       -.45433E-06    .12525E-04
  22  Prefactor     19.927        38.158       -.31597E-06    .15513E-04
  23  norm          3.8903        1.4177        .12211E-07    .12500E-04
  24  Prefactor     52.254        35.362        .10549E-05    .62630E-04
  25  norm          3.2607        2.3267        .14890E-06   -.55648E-03
  26  Prefactor     14.574        10.392        .32812E-06   -.27173E-03
  27  Prefactor     .10000E-03    .76987       -.55640E-07** at limit **
  28  Prefactor     .10000E-03    .70825       -.37995E-08** at limit **
  29  Normalizat    1.3266        .18023       -.83754E-06    .43697E-03
  30  Prefactor     .67649        .19188        .59434E-07    .17423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59342
  Prefactor  = 70.5386
  Prefactor  = 21.4559
  norm       = 2.1802
  Prefactor  = 0.0001
  Prefactor  = 14.0057
  Prefactor  = 0.0001
  norm       = 9.25235
  norm       = 6.4799
  Prefactor  = 0.000100001
  Prefactor  = 54.4315
  Prefactor  = 0.0001
  norm       = 0.000100756
  Prefactor  = 0.0001
  Prefactor  = 10.141
  Prefactor  = 0.0001
  norm       = 0.661546
  Prefactor  = 0.0001
  Prefactor  = 1.2864
  norm       = 6.34802
  Prefactor  = 10.8605
  Prefactor  = 19.9272
  norm       = 3.89033
  Prefactor  = 52.2539
  norm       = 3.26072
  Prefactor  = 14.5736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32657
  Prefactor  = 0.676495
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.320     FROM HESSE     STATUS=OK           600 CALLS     4557 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5934        17.667        .13673E-03   -1.5122    
   2  Prefactor     70.539        73.826        .47796E-04   -1.4026    
   3  Prefactor     21.456        11.581        .86472E-04   -1.4781    
   4  norm          2.1802        .41585        .21353E-04   -1.5413    
   5  Prefactor     .10000E-03    1.3181        .94971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.006        23.028        .10703E-03   -1.4959    
   7  Prefactor     .10000E-03    13.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2524        13.942        .13175E-03   -1.5100    
   9  norm          6.4799        11.017        .78831E-03   -1.5199    
  10  Prefactor     .10000E-03    17.485        .15894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.432        42.524        .54371E-04   -1.4231    
  12  Prefactor     .10000E-03    20.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10076E-03    2.0540        .28647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.141        6.1391        .12583E-03   -1.5071    
  16  Prefactor     .10000E-03    9.2568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66155        .84310        .84865E-03   -1.5545    
  18  Prefactor     .10000E-03    5.6921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2864        1.6577        .12207E-03   -1.5481    
  20  norm          6.3480        7.9240        .79652E-03   -1.5204    
  21  Prefactor     10.861        19.854        .12157E-03   -1.5049    
  22  Prefactor     19.927        37.845        .89724E-04   -1.4815    
  23  norm          3.8903        1.4186        .58748E-04   -1.5313    
  24  Prefactor     52.254        35.320        .55484E-04   -1.4261    
  25  norm          3.2607        2.3548        .54121E-03   -1.5347    
  26  Prefactor     14.574        10.611        .52459E-03   -1.4944    
  27  Prefactor     .10000E-03    .77729        .73185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .71077        .70250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3266        .20947        .23661E-03   -.82777    
  30  Prefactor     .67649        .21972        .36145E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57245e-09
Minuit parameter uncertainties:
  1  17.678
  2  73.9222
  3  11.5822
  4  0.415852
  5  5.32243e-07
  6  23.0431
  7  6.93447e-05
  8  13.9465
  9  11.0201
  10  0.000216616
  11  42.5479
  12  0.000138663
  13  0.00249211
  14  1.5489e-05
  15  6.1395
  16  4.55651e-05
  17  0.843113
  18  3.09005e-06
  19  1.65779
  20  7.9253
  21  19.8656
  22  37.8906
  23  1.41862
  24  35.3337
  25  2.35485
  26  10.6122
  27  7.59833e-07
  28  1.27354e-08
  29  0.209605
  30  0.220005
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.014e+01  6.140e+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:  6.765e-01  2.200e-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.327e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.17e-05

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) = 7310.31871764
delta logL = 0.00118144904263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7310.31816895
delta logL = 0.00173013099629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9434       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5940       1.0000          .0000       10.000    
     3 'Normalizat'    1.3229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67961       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=   7310.318     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9404        125.18        .31769E-02    .14797E-03
   2  Index         2.5938        6.2383        .16162        .94905E-04
   3  Normalizat    1.3235        .99574E-01    .53562E-01    .11291E-04
   4  Prefactor     .67894        .88455E-01    .81486E-01    .36426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.94039
  Index      = 2.5938
  Normalizat = 1.32355
  Prefactor  = 0.678944
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.318     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9404        7.2630        .12708E-03   -1.5077    
   2  Index         2.5938        .72706        .85905E-02   -.50207    
   3  Normalizat    1.3235        .20081        .23683E-03   -.82866    
   4  Prefactor     .67894        .22120        .36086E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20091e-12
Minuit parameter uncertainties:
  1  7.26361
  2  0.730438
  3  0.200927
  4  0.221485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952917': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7310.31816292
delta logL = 0.00173616432494

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  9.940e+00  7.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.594e+00  7.304e-01  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.789e-01  2.215e-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.324e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.59 +/- 0.73
Photon Flux (Free Index): 7.22e-08 +/- 5.38e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/952917/cmap_HighResolution_608428801_608688001_4FGL_J1136.2+3407_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='1.90e-05', photon_flux_error='4.24e-08', dlogl='1.74e-03', energy_flux='1.93e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-04 05:31:54.919553', photon_index_error2='0.73', photon_index2='2.59', ts='4.91', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.33', time_epoch_completed='1630758714.92', return_code='0', job_id='952917', GAL2='0.68', EG2='1.32', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.38e-08', ts2='4.87', photon_index='2.55' WHERE bin_id='1424' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 952917: <4FGL_J1136.2+3407_daily_bin1424> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1424> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 05:16:23 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:16:26 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:16:26 2021
Terminated at Sat Sep  4 05:31:55 2021
Results reported at Sat Sep  4 05:31:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin1424 174.075 34.129 608428801 608688001 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 :                                   904.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

