/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 4 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin283
RA = 174.075, Dec = 34.129
tmin = 312681601, tmax = 312940801
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='945720', job_status='RUN', time_executed='2021-09-04 04:52:58.998216', time_epoch_executed='1630756379.0' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945720/ft1_4FGL_J1136.2+3407_daily_bin283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945720/ft1_4FGL_J1136.2+3407_daily_bin283.fits outfile=/scratch/kocevski/945720/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin283.fits ra=174.075 dec=34.129 rad=12.0 tmin=312681601.0 tmax=312940801.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.44
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.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/945720/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin283.fits evtable="EVENTS" outfile="/scratch/kocevski/945720/ft1_filtered_4FGL_J1136.2+3407_daily_bin283.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945720/ft1_filtered_4FGL_J1136.2+3407_daily_bin283.fits" evtable="EVENTS" scfile=/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits sctable="SC_DATA" outfile=/scratch/kocevski/945720/ltcube_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.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/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits
.....................!
real 11.88
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945720/ft1_filtered_4FGL_J1136.2+3407_daily_bin283.fits evtable="EVENTS" scfile=/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits sctable="SC_DATA" expcube=/scratch/kocevski/945720/ltcube_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.fits outfile=/scratch/kocevski/945720/expmap_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.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/945720/ltcube_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.fits
.....................!
real 190.91
user 185.51
sys 5.04

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/945720/ft1_filtered_4FGL_J1136.2+3407_daily_bin283.fits scfile=/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits outfile=/scratch/kocevski/945720/cmap_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945720/ft1_filtered_4FGL_J1136.2+3407_daily_bin283.fits scfile=/scratch/kocevski/945720/ft2_4FGL_J1136.2+3407_daily_bin283.fits outfile=/scratch/kocevski/945720/cmap_HighResolution_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3350       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.758       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4913       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8678       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3886       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5774       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.983       1.0000         .10000E-03   10000.    
    23 'norm      '    7.5346       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.765       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3953       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2203       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5659       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93926       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=   6559.339     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3370 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.160       -.91780E-05** at limit **
   2  Prefactor     4.1526        224.14        .35027E-03    .33670E-04
   3  Prefactor     .10000E-03    10.071        .15150E-06** at limit **
   4  norm          1.1550        .30782       -.22318E-07   -.68970E-03
   5  Prefactor     .10000E-03    1.9523        .19615E-06** at limit **
   6  Prefactor     6.3347        8.8665       -.11963E-05   -.10665E-02
   7  Prefactor     .10000E-03    4.9199       -.32581E-05** at limit **
   8  norm          32.760        17.313        .49018E-06   -.69443E-04
   9  norm          1.7119        13.876       -.27907E-06   -.33494E-03
  10  Prefactor     1.4905        2.3008       -.60251E-07   -.11485E-02
  11  Prefactor     .10000E-03    12.804        .25735E-07** at limit **
  12  Prefactor     .10000E-03    4.9536        .32491E-05** at limit **
  13  norm          .10000E-03    .46699       -.16820E-07** at limit **
  14  Prefactor     .10000E-03    6.3305       -.23995E-06** at limit **
  15  Prefactor     .36503        3.0822        .56496E-06   -.39436E-03
  16  Prefactor     5.8705        29.732        .31444E-05   -.43436E-04
  17  norm          1.3886        .97593        .61689E-06   -.40809E-03
  18  Prefactor     .10000E-03    76.073        .10681E-04** at limit **
  19  Prefactor     3.5777        2.2746        .84315E-07   -.70786E-03
  20  norm          .10000E-03    2.7681        .36000E-07** at limit **
  21  Prefactor     .10000E-03    29.291        .96770E-05** at limit **
  22  Prefactor     24.962        35.583       -.21390E-04   -.18492E-04
  23  norm          7.5346        1.7566        .62952E-07   -.69766E-03
  24  Prefactor     21.768        22.967        .14640E-05   -.68999E-04
  25  norm          2.3954        2.4863        .10378E-05   -.14151E-03
  26  Prefactor     .10000E-03    1.9716        .12825E-06** at limit **
  27  Prefactor     4.2203        2.5595       -.97541E-06   -.11549E-03
  28  Prefactor     5.5658        2.8502        .48521E-06   -.19527E-03
  29  Normalizat    1.0909        .17691       -.12811E-05   -.51218E-03
  30  Prefactor     .93920        .19997       -.35940E-05   -.27217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.15263
  Prefactor  = 0.0001
  norm       = 1.15498
  Prefactor  = 0.0001
  Prefactor  = 6.33468
  Prefactor  = 0.0001
  norm       = 32.7597
  norm       = 1.71192
  Prefactor  = 1.49047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.365032
  Prefactor  = 5.87047
  norm       = 1.38855
  Prefactor  = 0.0001
  Prefactor  = 3.57774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9617
  norm       = 7.5346
  Prefactor  = 21.7682
  norm       = 2.39536
  Prefactor  = 0.0001
  Prefactor  = 4.22033
  Prefactor  = 5.56578
  Normalizat = 1.0909
  Prefactor  = 0.939198
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.339     FROM HESSE     STATUS=OK           592 CALLS     3962 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1526        220.51        .20001E-03   -1.5300    
   3  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1550        .30867        .22318E-04   -1.5493    
   5  Prefactor     .10000E-03    2.0358        .22076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3347        8.8678        .79738E-03   -1.5205    
   7  Prefactor     .10000E-03    4.9224        .17543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.760        17.294        .70011E-04   -1.4563    
   9  norm          1.7119        13.975        .32126E-03   -1.5446    
  10  Prefactor     1.4905        2.2586        .13981E-03   -1.5464    
  11  Prefactor     .10000E-03    12.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9599        .17604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .46783        .54017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36503        22.291        .25649E-02   -1.5587    
  16  Prefactor     5.8705        29.451        .16579E-03   -1.5223    
  17  norm          1.3886        .96350        .60853E-04   -1.5472    
  18  Prefactor     .10000E-03    78.937        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5777        2.2670        .93306E-04   -1.5330    
  20  norm          .10000E-03    2.7695        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.962        35.565        .80143E-04   -1.4708    
  23  norm          7.5346        1.7572        .49606E-04   -1.5159    
  24  Prefactor     21.768        22.982        .85856E-04   -1.4774    
  25  norm          2.3954        2.4844        .11921E-03   -1.5398    
  26  Prefactor     .10000E-03    1.9770        .11106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.2203        2.5596        .92727E-04   -1.5297    
  28  Prefactor     5.5658        2.8454        .93029E-04   -1.5236    
  29  Normalizat    1.0909        .21358        .24440E-03   -.90044    
  30  Prefactor     .93920        .23921        .30688E-03   -.94785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19039e-09
Minuit parameter uncertainties:
  1  0.000120185
  2  60.7583
  3  4.99129e-05
  4  0.308673
  5  1.90079e-05
  6  8.86961
  7  4.8158e-07
  8  17.2963
  9  9.78519
  10  2.25876
  11  7.94966e-06
  12  6.79513e-06
  13  7.98642e-08
  14  1.68704e-05
  15  5.70654
  16  26.3182
  17  0.963508
  18  0.000178142
  19  2.26702
  20  1.32045e-05
  21  3.07917e-05
  22  35.5954
  23  1.75717
  24  22.9911
  25  2.48455
  26  3.609e-06
  27  2.55969
  28  2.84543
  29  0.213744
  30  0.239484
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.650e-01  5.707e+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:  9.392e-01  2.395e-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.091e+00  2.137e-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: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945720/likelihoodResults_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.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) = 6559.27178337
delta logL = 0.0671957529876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6559.24076948
delta logL = 0.0982096348016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90570       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4514       1.0000          .0000       10.000    
     3 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95215       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=   6559.241     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90657        52.439        .12828E-01    .26786E-03
   2  Index         3.4524        6.7250        .22486        .12920E-03
   3  Normalizat    1.0693        .31629E-01    .39428E-01    .12877E-04
   4  Prefactor     .95204        .37462E-01    .68952E-01    .14748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.906566
  Index      = 3.45243
  Normalizat = 1.06933
  Prefactor  = 0.952037
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.241     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90657        4.6204        .16486E-03   -1.5518    
   2  Index         3.4524        2.4004        .13931E-01   -.31468    
   3  Normalizat    1.0693        .20841        .24646E-03   -.90743    
   4  Prefactor     .95204        .23979        .30502E-03   -.94346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91953e-09
Minuit parameter uncertainties:
  1  4.09353
  2  2.51625
  3  0.208574
  4  0.240062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945720': 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) = 6559.24076616
delta logL = 0.0982129557015

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  9.066e-01  4.094e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.452e+00  2.516e+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:  9.520e-01  2.401e-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.069e+00  2.086e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/945720/cmap_HighResolution_312681601_312940801_4FGL_J1136.2+3407_daily_bin283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2021-09-04 05:07:58.111849', job_id='945720', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1630757278.11', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.82e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='283' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:07:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 945720: <4FGL_J1136.2+3407_daily_bin283> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin283> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:43 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:52:44 2021
Terminated at Sat Sep  4 05:07:58 2021
Results reported at Sat Sep  4 05:07:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin283 174.075 34.129 312681601 312940801 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 :                                   889.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

