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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1395
RA = 174.075, Dec = 34.129
tmin = 600912001, tmax = 601171201
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='952871', job_status='RUN', time_executed='2021-09-04 05:16:35.583535', time_epoch_executed='1630757795.58' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952871/ft1_4FGL_J1136.2+3407_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits


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

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

Done.
real 3.57
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952871/ft1_filtered_4FGL_J1136.2+3407_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/952871/ltcube_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.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/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits
.....................!
real 12.38
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952871/ft1_filtered_4FGL_J1136.2+3407_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/952871/ltcube_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.fits outfile=/scratch/kocevski/952871/expmap_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.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/952871/ltcube_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.fits
.....................!
real 189.86
user 185.28
sys 4.25

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/952871/ft1_filtered_4FGL_J1136.2+3407_daily_bin1395.fits scfile=/scratch/kocevski/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits outfile=/scratch/kocevski/952871/cmap_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.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/952871/ft1_filtered_4FGL_J1136.2+3407_daily_bin1395.fits scfile=/scratch/kocevski/952871/ft2_4FGL_J1136.2+3407_daily_bin1395.fits outfile=/scratch/kocevski/952871/cmap_HighResolution_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41002E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3135       1.0000         .10000E-03   10000.    
     8 'norm      '    .15735E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.230       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4346       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51099       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1781       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.256       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.619       1.0000         .10000E-03   10000.    
    23 'norm      '    .23194E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.398       1.0000         .10000E-03   10000.    
    25 'norm      '    4.7877       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2733       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9537       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95692       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0303       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=   6929.748     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4063 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.982        19.804       -.90019E-07   -.94348E-04
   2  Prefactor     2.6635        1423.0        .25022E-04    .21025E-04
   3  Prefactor     .10008E-03    75.543        .11385E-04** at limit **
   4  norm          1.4935        .36013       -.20763E-07   -.97804E-03
   5  Prefactor     3.7959        3.2772        .24171E-06   -.84090E-03
   6  Prefactor     9.4481        16.040       -.28829E-05   -.51155E-03
   7  Prefactor     1.3140        23.792        .11199E-05   -.52420E-04
   8  norm          .10010E-03    19.732       -.42082E-06** at limit **
   9  norm          .10000E-03    4.6510        .91736E-07** at limit **
  10  Prefactor     1.1998        4.0330        .24783E-06   -.29609E-03
  11  Prefactor     51.240        69.986       -.14230E-05   -.12689E-03
  12  Prefactor     18.969        16.372        .33849E-07   -.16696E-03
  13  norm          2.3090        2.9224        .22283E-06   -.54508E-03
  14  Prefactor     .10000E-03    4.7845        .57172E-07** at limit **
  15  Prefactor     .10000E-03    1.9436        .11988E-06** at limit **
  16  Prefactor     28.207        32.906       -.52044E-08   -.57406E-04
  17  norm          1.4346        .93033        .70681E-07   -.48669E-03
  18  Prefactor     .10000E-03    9.0071        .34873E-06** at limit **
  19  Prefactor     .51055        1.1421       -.58795E-06   -.50837E-03
  20  norm          4.1801        6.3869       -.30579E-07    .81337E-05
  21  Prefactor     22.258        25.237        .30230E-06   -.55035E-04
  22  Prefactor     35.612        39.375       -.92419E-07   -.12266E-04
  23  norm          .10001E-03    .44215        .34968E-06** at limit **
  24  Prefactor     30.346        30.381        .44338E-06   -.10318E-03
  25  norm          4.7876        2.6324        .14749E-07   -.33500E-04
  26  Prefactor     .10000E-03    8.8268        .10368E-06** at limit **
  27  Prefactor     2.2731        2.0389        .11632E-07   -.15598E-04
  28  Prefactor     2.9535        1.9666        .27593E-07   -.23111E-04
  29  Normalizat    .95710        .20525       -.44031E-05   -.40186E-03
  30  Prefactor     1.0303        .21736        .35330E-05   -.55245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9824
  Prefactor  = 2.6635
  Prefactor  = 0.000100082
  norm       = 1.49349
  Prefactor  = 3.79591
  Prefactor  = 9.44808
  Prefactor  = 1.31398
  norm       = 0.000100102
  norm       = 0.0001
  Prefactor  = 1.19984
  Prefactor  = 51.2396
  Prefactor  = 18.969
  norm       = 2.30897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2072
  norm       = 1.43464
  Prefactor  = 0.0001
  Prefactor  = 0.510553
  norm       = 4.18007
  Prefactor  = 22.2577
  Prefactor  = 35.6119
  norm       = 0.00010001
  Prefactor  = 30.3461
  norm       = 4.78765
  Prefactor  = 0.0001
  Prefactor  = 2.2731
  Prefactor  = 2.95347
  Normalizat = 0.957101
  Prefactor  = 1.03035
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.748     FROM HESSE     STATUS=OK           610 CALLS     4673 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.982        19.799        .89564E-04   -1.4814    
   2  Prefactor     2.6635        1524.9        .22656E-02   -1.5382    
   3  Prefactor     .10008E-03    89.715        .49733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4935        .36004        .22843E-04   -1.5464    
   5  Prefactor     3.7959        3.0399        .12274E-03   -1.5318    
   6  Prefactor     9.4481        15.990        .13025E-03   -1.5093    
   7  Prefactor     1.3140        23.900        .38450E-03   -1.5479    
   8  norm          .10010E-03    46.932        .50416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6676        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1998        3.9662        .20052E-03   -1.5489    
  11  Prefactor     51.240        68.906        .56077E-04   -1.4275    
  12  Prefactor     18.969        16.365        .91954E-04   -1.4837    
  13  norm          2.3090        2.8810        .13395E-03   -1.5404    
  14  Prefactor     .10000E-03    4.7927        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9560        .11332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.207        32.837        .75403E-04   -1.4645    
  17  norm          1.4346        .92726        .29196E-03   -1.5468    
  18  Prefactor     .10000E-03    9.0467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .51055        1.0166        .13318E-02   -1.5565    
  20  norm          4.1801        6.3720        .19717E-03   -1.5299    
  21  Prefactor     22.258        25.216        .84905E-04   -1.4764    
  22  Prefactor     35.612        39.384        .67148E-04   -1.4514    
  23  norm          .10001E-03    .59614        .19653E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.346        30.382        .72670E-04   -1.4606    
  25  norm          4.7876        2.6342        .93102E-04   -1.5270    
  26  Prefactor     .10000E-03    9.0069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2731        2.0346        .10496E-03   -1.5406    
  28  Prefactor     2.9535        1.9642        .91461E-04   -1.5364    
  29  Normalizat    .95710        .21192        .25731E-03   -.94482    
  30  Prefactor     1.0303        .22759        .28753E-03   -.91725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37297e-09
Minuit parameter uncertainties:
  1  19.8057
  2  130.964
  3  0.00543187
  4  0.360042
  5  3.04003
  6  15.9975
  7  11.2126
  8  0.00437688
  9  5.89825e-06
  10  3.9671
  11  69.0136
  12  16.3685
  13  2.88112
  14  7.95288e-06
  15  4.12678e-06
  16  32.8577
  17  0.927267
  18  2.12839e-05
  19  1.01662
  20  6.37302
  21  25.2282
  22  39.4126
  23  0.000155771
  24  30.3971
  25  2.63428
  26  2.32132e-05
  27  2.03463
  28  1.96427
  29  0.212104
  30  0.227805
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.127e-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:  1.030e+00  2.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.571e-01  2.121e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952871/likelihoodResults_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.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) = 6929.75002518
delta logL = -0.00242616411469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6929.74759903
delta logL = -1.03400452645e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5605       1.0000          .0000       10.000    
     3 'Normalizat'    .95712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0304       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=   6929.748     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2930        .11355E-02** at limit **
   2  Index         2.5680        6.2168        .50000       -.33997E-04
   3  Normalizat    .95710        .19245        .25729E-03   -.40033E-04
   4  Prefactor     1.0304        .22322        .28754E-03   -.15222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.56796
  Normalizat = 0.957099
  Prefactor  = 1.03035
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.748     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9970        .22710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5680        6.2803        .50000       -.50797    
   3  Normalizat    .95710        .19265        .10292E-04   -.94482    
   4  Prefactor     1.0304        .22344        .11501E-04   -.91724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05618e-09
Minuit parameter uncertainties:
  1  0.000135217
  2  4.40591
  3  0.192785
  4  0.223644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952871': 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) = 6929.74759891
delta logL = 1.13859641715e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.352e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.568e+00  4.406e+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.030e+00  2.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.571e-01  1.928e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/952871/cmap_HighResolution_600912001_601171201_4FGL_J1136.2+3407_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-04 05:32:37.511239', job_id='952871', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630758757.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1395' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:32:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 952871: <4FGL_J1136.2+3407_daily_bin1395> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1395> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 05:16:19 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:16:21 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:21 2021
Terminated at Sat Sep  4 05:32:38 2021
Results reported at Sat Sep  4 05:32:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin1395 174.075 34.129 600912001 601171201 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 :                                   958.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

