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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1014
RA = 174.075, Dec = 34.129
tmin = 502156801, tmax = 502416001
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='950134', job_status='RUN', time_executed='2021-09-04 05:07:19.621545', time_epoch_executed='1630757239.62' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950134

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950134/ft1_4FGL_J1136.2+3407_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950134/ft2_4FGL_J1136.2+3407_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950134/ft1_4FGL_J1136.2+3407_daily_bin1014.fits outfile=/scratch/kocevski/950134/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1014.fits ra=174.075 dec=34.129 rad=12.0 tmin=502156801.0 tmax=502416001.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.05
user 3.80
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950134/ft1_filtered_4FGL_J1136.2+3407_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/950134/ft2_4FGL_J1136.2+3407_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/950134/ltcube_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.fits outfile=/scratch/kocevski/950134/expmap_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.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/950134/ltcube_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.fits
.....................!
real 192.48
user 185.09
sys 5.00

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/950134/ft1_filtered_4FGL_J1136.2+3407_daily_bin1014.fits scfile=/scratch/kocevski/950134/ft2_4FGL_J1136.2+3407_daily_bin1014.fits outfile=/scratch/kocevski/950134/cmap_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    213.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7573       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5044       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.7585       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .57798E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10377E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1779       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6109       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54307       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.204       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.006       1.0000         .10000E-03   10000.    
    25 'norm      '    20.266       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0960       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68686       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=   6160.726     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3933 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8243        .63032E-07** at limit **
   2  Prefactor     213.85        138.74       -.16405E-05   -.15903E-03
   3  Prefactor     1.7578        4.5628        .21042E-06    .62816E-04
   4  norm          1.5043        .35224       -.29551E-07   -.85892E-03
   5  Prefactor     3.8685        2.6070        .14759E-05    .15047E-02
   6  Prefactor     .10000E-03    22.641       -.16427E-06** at limit **
   7  Prefactor     .10000E-03    4.3746       -.15833E-08** at limit **
   8  norm          4.7601        12.918        .60833E-07   -.19038E-04
   9  norm          3.4155        10.385        .16340E-06    .14288E-04
  10  Prefactor     .10000E-03    .72089        .25951E-07** at limit **
  11  Prefactor     .10000E-03    12.203        .15235E-06** at limit **
  12  Prefactor     .10000E-03    31.394        .92117E-06** at limit **
  13  norm          .10000E-03    1.2911        .57491E-07** at limit **
  14  Prefactor     15.089        13.459        .94514E-06    .89035E-04
  15  Prefactor     .10000E-03    2.6889       -.13666E-07** at limit **
  16  Prefactor     28.324        29.017       -.33217E-06   -.13648E-03
  17  norm          1.1773        .90978       -.27115E-07   -.18394E-03
  18  Prefactor     8.6032        14.586       -.65840E-06   -.91194E-04
  19  Prefactor     .54413        1.3252        .74814E-06    .42336E-03
  20  norm          .10000E-03    10.036       -.37044E-08** at limit **
  21  Prefactor     .10000E-03    24.071       -.10222E-05** at limit **
  22  Prefactor     .10000E-03    47.509       -.60974E-06** at limit **
  23  norm          12.204        2.0974       -.16814E-07   -.45825E-03
  24  Prefactor     22.986        32.641       -.78538E-06   -.23784E-03
  25  norm          20.266        4.7456        .62171E-08   -.38451E-03
  26  Prefactor     .10071E-03    6.3670        .30037E-05** at limit **
  27  Prefactor     .10000E-03    .90596        .27353E-07** at limit **
  28  Prefactor     2.0960        2.1270        .11886E-06   -.11615E-04
  29  Normalizat    1.0673        .19358        .25021E-05   -.45507E-03
  30  Prefactor     .68616        .20937       -.49311E-05   -.23363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 213.852
  Prefactor  = 1.7578
  norm       = 1.5043
  Prefactor  = 3.86851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.76007
  norm       = 3.41552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0894
  Prefactor  = 0.0001
  Prefactor  = 28.3245
  norm       = 1.17728
  Prefactor  = 8.60325
  Prefactor  = 0.54413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.2037
  Prefactor  = 22.9863
  norm       = 20.2656
  Prefactor  = 0.000100706
  Prefactor  = 0.0001
  Prefactor  = 2.09596
  Normalizat = 1.06734
  Prefactor  = 0.686158
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.726     FROM HESSE     STATUS=OK           586 CALLS     4519 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     213.85        139.29        .13822E-03   -1.2773    
   3  Prefactor     1.7578        4.5113        .25975E-03   -1.5443    
   4  norm          1.5043        .35229        .21643E-04   -1.5463    
   5  Prefactor     3.8685        2.6745        .50545E-03   -1.5315    
   6  Prefactor     .10000E-03    22.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3760        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7601        12.882        .18445E-03   -1.5272    
   9  norm          3.4155        10.369        .21878E-03   -1.5338    
  10  Prefactor     .10000E-03    .72507        .64991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7167        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.089        13.360        .10312E-03   -1.4931    
  15  Prefactor     .10000E-03    17.012        .24276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.324        28.800        .37627E-03   -1.4643    
  17  norm          1.1773        .91130        .61669E-04   -1.5491    
  18  Prefactor     8.6032        14.423        .13660E-03   -1.5121    
  19  Prefactor     .54413        1.2889        .13340E-03   -1.5560    
  20  norm          .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.204        2.0969        .44860E-04   -1.5009    
  24  Prefactor     22.986        32.620        .83511E-04   -1.4749    
  25  norm          20.266        4.7357        .78724E-04   -1.4807    
  26  Prefactor     .10071E-03    37.255        .31749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .90988        .72886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.0960        2.1137        .11039E-03   -1.5418    
  29  Normalizat    1.0673        .21377        .23701E-03   -.90807    
  30  Prefactor     .68616        .23193        .33558E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95147e-08
Minuit parameter uncertainties:
  1  2.86636e-06
  2  139.506
  3  4.51218
  4  0.352288
  5  2.67455
  6  0.000127328
  7  5.82779e-07
  8  12.8895
  9  10.3741
  10  5.33858e-08
  11  4.94469e-05
  12  0.000213236
  13  2.14866e-05
  14  13.363
  15  0.000182289
  16  28.8137
  17  0.911314
  18  14.4284
  19  1.28892
  20  7.76027e-07
  21  0.00016178
  22  0.000489798
  23  2.0969
  24  32.6458
  25  4.7358
  26  0.0102601
  27  2.75387e-08
  28  2.11378
  29  0.213947
  30  0.232259
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.823e-04  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.862e-01  2.323e-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.067e+00  2.139e-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: 8.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950134/likelihoodResults_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.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) = 6160.7260749
delta logL = -0.000279194258837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6160.7257961
delta logL = -3.86511601391e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6161       1.0000          .0000       10.000    
     3 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68617       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=   6160.726     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      243 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    4.5253        .71466E-01** at limit **
   2  Index         2.7029        6.2268        .50000       -.43391E-04
   3  Normalizat    1.0673        .60002E-02    .39517E-01    .70459E-04
   4  Prefactor     .68616        .69845E-02    .75804E-01    .54072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100067
  Index      = 2.70294
  Normalizat = 1.06735
  Prefactor  = 0.686157
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.726     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      278 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    1907.7        .23133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7029        5.5569        .50000       -.47733    
   3  Normalizat    1.0673        .37989E-01    .23701E-03   -.90807    
   4  Prefactor     .68616        .44001E-01    .33559E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.31394e-07
Minuit parameter uncertainties:
  1  0.0234252
  2  36.4026
  3  0.0379901
  4  0.0440032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950134': 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) = 6160.72579439
delta logL = 1.31738306663e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.001e-04  2.343e-02  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.703e+00  3.640e+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.862e-01  4.400e-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.067e+00  3.799e-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/950134/cmap_HighResolution_502156801_502416001_4FGL_J1136.2+3407_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.26e-08', time_completed='2021-09-04 05:22:34.219955', job_id='950134', GAL2='0.69', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630758154.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1014' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:22:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 950134: <4FGL_J1136.2+3407_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1014> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:07:04 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:07:05 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:05 2021
Terminated at Sat Sep  4 05:22:35 2021
Results reported at Sat Sep  4 05:22:35 2021

Your job looked like:

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

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

