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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin835
RA = 174.075, Dec = 34.129
tmin = 455760001, tmax = 456019201
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='949874', job_status='RUN', time_executed='2021-09-04 05:08:45.868171', time_epoch_executed='1630757325.87' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949874/ft1_4FGL_J1136.2+3407_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949874/ft2_4FGL_J1136.2+3407_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949874/ft1_4FGL_J1136.2+3407_daily_bin835.fits outfile=/scratch/kocevski/949874/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin835.fits ra=174.075 dec=34.129 rad=12.0 tmin=455760001.0 tmax=456019201.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 2.89
user 2.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949874/ft1_filtered_4FGL_J1136.2+3407_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/949874/ft2_4FGL_J1136.2+3407_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/949874/ltcube_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.fits outfile=/scratch/kocevski/949874/expmap_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.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/949874/ltcube_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.fits
.....................!
real 144.72
user 140.88
sys 3.55

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/949874/ft1_filtered_4FGL_J1136.2+3407_daily_bin835.fits scfile=/scratch/kocevski/949874/ft2_4FGL_J1136.2+3407_daily_bin835.fits outfile=/scratch/kocevski/949874/cmap_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949874/ft1_filtered_4FGL_J1136.2+3407_daily_bin835.fits scfile=/scratch/kocevski/949874/ft2_4FGL_J1136.2+3407_daily_bin835.fits outfile=/scratch/kocevski/949874/cmap_HighResolution_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6194       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2261       1.0000         .10000E-03   10000.    
     8 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.4152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15667E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.613       1.0000         .10000E-03   10000.    
    17 'norm      '    .17293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4382       1.0000         .10000E-03   10000.    
    23 'norm      '    3.7728       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.1918       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1368       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.3485       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77225       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3210       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=   6858.192     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3515 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3278       -.18192E-07** at limit **
   2  Prefactor     .10000E-03    42.494       -.66123E-06** at limit **
   3  Prefactor     3.6261        9.4697        .33547E-05   -.17540E-03
   4  norm          2.2670        .41692       -.64724E-08   -.91249E-03
   5  Prefactor     .10000E-03    1.3205       -.69477E-07** at limit **
   6  Prefactor     .95231        12.630        .19461E-05   -.16053E-03
   7  Prefactor     9.2166        11.606        .22502E-06    .24375E-03
   8  norm          .10000E-03    14.396       -.33725E-06** at limit **
   9  norm          7.4115        12.088        .21778E-06   -.10737E-03
  10  Prefactor     .10000E-03    .57373       -.25891E-07** at limit **
  11  Prefactor     .10000E-03    9.3478       -.25463E-07** at limit **
  12  Prefactor     .28762        11.555        .15449E-06   -.50098E-04
  13  norm          1.0741        1.6249       -.22359E-06   -.96043E-03
  14  Prefactor     .10000E-03    31.830        .12037E-05** at limit **
  15  Prefactor     .10000E-03    3.2836       -.91825E-07** at limit **
  16  Prefactor     20.670        36.260        .89056E-06   -.12811E-03
  17  norm          .17292        .66408       -.14286E-06   -.35912E-03
  18  Prefactor     2.6158        37.306       -.39866E-05   -.67289E-04
  19  Prefactor     .10000E-03    1.3651        .19875E-05** at limit **
  20  norm          3.2717        9.2303        .41887E-05   -.10728E-03
  21  Prefactor     .10000E-03    12.425       -.21081E-07** at limit **
  22  Prefactor     9.4761        41.198       -.94238E-07    .89188E-04
  23  norm          3.7738        1.3889        .81488E-07   -.15270E-03
  24  Prefactor     .10000E-03    15.975        .81709E-07** at limit **
  25  norm          8.1925        3.2590        .27579E-07    .53678E-04
  26  Prefactor     5.1434        6.9330        .13152E-06   -.97963E-04
  27  Prefactor     .10000E-03    1.2565       -.27415E-07** at limit **
  28  Prefactor     8.3504        3.1207        .32608E-07   -.14664E-04
  29  Normalizat    .77165        .17635       -.75042E-06   -.28499E-03
  30  Prefactor     1.3210        .20072        .39045E-07   -.16050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.62611
  norm       = 2.26697
  Prefactor  = 0.0001
  Prefactor  = 0.952314
  Prefactor  = 9.2166
  norm       = 0.0001
  norm       = 7.41153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287617
  norm       = 1.07412
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 20.6702
  norm       = 0.172917
  Prefactor  = 2.61578
  Prefactor  = 0.0001
  norm       = 3.27165
  Prefactor  = 0.0001
  Prefactor  = 9.47608
  norm       = 3.77382
  Prefactor  = 0.0001
  norm       = 8.19251
  Prefactor  = 5.1434
  Prefactor  = 0.0001
  Prefactor  = 8.35037
  Normalizat = 0.77165
  Prefactor  = 1.32103
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.192     FROM HESSE     STATUS=OK           606 CALLS     4121 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6261        9.7211        .10618E-02   -1.5327    
   4  norm          2.2670        .41972        .20624E-04   -1.5407    
   5  Prefactor     .10000E-03    1.3648        .18561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95231        55.780        .49419E-02   -1.5513    
   7  Prefactor     9.2166        11.641        .13195E-03   -1.5101    
   8  norm          .10000E-03    14.912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4115        12.079        .14728E-03   -1.5163    
  10  Prefactor     .10000E-03    .58018        .61194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.3509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28762        13.049        .82740E-01   -1.5601    
  13  norm          1.0741        1.4241        .12416E-02   -1.5501    
  14  Prefactor     .10000E-03    32.747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3770        .29269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.670        35.367        .88219E-04   -1.4798    
  17  norm          .17292        .83306        .10661E-02   -1.5625    
  18  Prefactor     2.6158        38.427        .25088E-03   -1.5384    
  19  Prefactor     .10000E-03    2.1853        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2717        9.5120        .11201E-02   -1.5346    
  21  Prefactor     .10000E-03    12.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4761        40.281        .13045E-03   -1.5092    
  23  norm          3.7738        1.3876        .55963E-04   -1.5319    
  24  Prefactor     .10000E-03    16.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.1925        3.1247        .86577E-04   -1.5135    
  26  Prefactor     5.1434        6.9278        .17738E-03   -1.5254    
  27  Prefactor     .10000E-03    2.1575        .17265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.3504        3.1169        .85225E-04   -1.5130    
  29  Normalizat    .77165        .20656        .27263E-03   -1.0113    
  30  Prefactor     1.3210        .23952        .26473E-03   -.82684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53898e-08
Minuit parameter uncertainties:
  1  2.57423e-06
  2  0.000755436
  3  9.7253
  4  0.419723
  5  6.80361e-06
  6  14.5902
  7  11.6436
  8  0.000162667
  9  12.0832
  10  8.57869e-07
  11  5.65386e-06
  12  3.8748
  13  1.42415
  14  0.000677459
  15  6.92661e-06
  16  35.4027
  17  0.758877
  18  20.0666
  19  3.4811e-05
  20  9.51635
  21  9.42221e-07
  22  39.1194
  23  1.38759
  24  0.0001043
  25  3.12479
  26  6.9289
  27  1.41953e-06
  28  3.11698
  29  0.206769
  30  0.239725
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.927e-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.321e+00  2.397e-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:  7.716e-01  2.068e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949874/likelihoodResults_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.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) = 6858.19304119
delta logL = -0.00141281432298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6858.19163162
delta logL = -3.24105894833e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5802       1.0000          .0000       10.000    
     3 'Normalizat'    .77123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3216       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=   6858.192     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4716        .90712E-02** at limit **
   2  Index         2.6081        6.2976        .50000       -.75349E-04
   3  Normalizat    .77165        .16015        .43234E-01   -.28296E-04
   4  Prefactor     1.3210        .19851        .59864E-01   -.35625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.60814
  Normalizat = 0.771652
  Prefactor  = 1.32103
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.192     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9119        .30113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6081        6.3030        .50000       -.49880    
   3  Normalizat    .77165        .18921        .27263E-03   -1.0113    
   4  Prefactor     1.3210        .23466        .26473E-03   -.82684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22857e-09
Minuit parameter uncertainties:
  1  0.000122119
  2  4.58056
  3  0.189366
  4  0.234846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949874': 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) = 6858.19162746
delta logL = 9.15983036975e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.221e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.608e+00  4.581e+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.321e+00  2.348e-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:  7.717e-01  1.894e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/949874/cmap_HighResolution_455760001_456019201_4FGL_J1136.2+3407_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-04 05:20:18.470367', job_id='949874', GAL2='1.32', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630758018.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='9.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='835' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 949874: <4FGL_J1136.2+3407_daily_bin835> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin835> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:40 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:41 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:06:41 2021
Terminated at Sat Sep  4 05:20:19 2021
Results reported at Sat Sep  4 05:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin835 174.075 34.129 455760001 456019201 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 :                                   690.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

