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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin293
RA = 174.075, Dec = 34.129
tmin = 315273601, tmax = 315532801
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='945736', job_status='RUN', time_executed='2021-09-04 04:56:51.134360', time_epoch_executed='1630756611.13' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945736/ft1_4FGL_J1136.2+3407_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945736/ft2_4FGL_J1136.2+3407_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945736/ft1_4FGL_J1136.2+3407_daily_bin293.fits outfile=/scratch/kocevski/945736/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin293.fits ra=174.075 dec=34.129 rad=12.0 tmin=315273601.0 tmax=315532801.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.67
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945736/ft2_4FGL_J1136.2+3407_daily_bin293.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/945736/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/945736/ft1_filtered_4FGL_J1136.2+3407_daily_bin293.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945736/ft1_filtered_4FGL_J1136.2+3407_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/945736/ft2_4FGL_J1136.2+3407_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/945736/ltcube_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.fits outfile=/scratch/kocevski/945736/expmap_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.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/945736/ltcube_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.fits
.....................!
real 190.67
user 185.52
sys 4.77

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/945736/ft1_filtered_4FGL_J1136.2+3407_daily_bin293.fits scfile=/scratch/kocevski/945736/ft2_4FGL_J1136.2+3407_daily_bin293.fits outfile=/scratch/kocevski/945736/cmap_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.614       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3196       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.694       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7184       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6815       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4008       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.658       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.9562       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4493       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1029       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .45334       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3595       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=   4365.352     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3889 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.001        .55382E-06** at limit **
   2  Prefactor     .10000E-03    38.809       -.12711E-05** at limit **
   3  Prefactor     .10000E-03    5.3737        .92430E-07** at limit **
   4  norm          1.1633        .39049        .64440E-08   -.22626E-03
   5  Prefactor     .10000E-03    1.9631        .23004E-06** at limit **
   6  Prefactor     14.603        19.109       -.37519E-06   -.11693E-04
   7  Prefactor     .10000E-03    5.9210        .54924E-07** at limit **
   8  norm          2.3046        47.432        .16935E-05    .12105E-04
   9  norm          .10000E-03    6.4481        .12050E-06** at limit **
  10  Prefactor     .10000E-03    1.6510       -.18912E-06** at limit **
  11  Prefactor     .10000E-03    76.944        .71791E-06** at limit **
  12  Prefactor     31.694        26.450       -.93777E-06   -.19391E-05
  13  norm          2.3100        2.4340       -.78375E-07   -.65025E-04
  14  Prefactor     .10000E-03    5.9576       -.69001E-07** at limit **
  15  Prefactor     6.8341        6.5013        .28218E-05    .84995E-03
  16  Prefactor     8.6931        148.65       -.42105E-05   -.70900E-04
  17  norm          3.5780        1.8954        .21192E-06    .23834E-03
  18  Prefactor     .56469        27.221       -.54422E-05    .59802E-03
  19  Prefactor     1.6837        1.6017       -.20648E-07    .51497E-03
  20  norm          .10000E-03    8.5265       -.44570E-07** at limit **
  21  Prefactor     2.3894        87.923       -.27164E-05   -.39285E-04
  22  Prefactor     .10001E-03    54.074        .25698E-05** at limit **
  23  norm          14.662        2.8855       -.22397E-07    .82495E-03
  24  Prefactor     .10000E-03    15.410       -.21903E-06** at limit **
  25  norm          8.9547        4.7160        .13072E-07    .31959E-04
  26  Prefactor     8.4482        7.8356        .50049E-07    .90616E-05
  27  Prefactor     3.1022        3.1923        .76598E-07    .54305E-04
  28  Prefactor     .10000E-03    2.0372        .13609E-06** at limit **
  29  Normalizat    .45363        .23465        .43236E-06    .73102E-04
  30  Prefactor     1.3594        .25429       -.15069E-05    .71505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.16328
  Prefactor  = 0.0001
  Prefactor  = 14.603
  Prefactor  = 0.0001
  norm       = 2.30461
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.6943
  norm       = 2.31004
  Prefactor  = 0.0001
  Prefactor  = 6.83414
  Prefactor  = 8.69314
  norm       = 3.57798
  Prefactor  = 0.564692
  Prefactor  = 1.68373
  norm       = 0.0001
  Prefactor  = 2.38936
  Prefactor  = 0.000100013
  norm       = 14.6623
  Prefactor  = 0.0001
  norm       = 8.95469
  Prefactor  = 8.44818
  Prefactor  = 3.10223
  Prefactor  = 0.0001
  Normalizat = 0.453627
  Prefactor  = 1.35938
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.352     FROM HESSE     STATUS=OK           586 CALLS     4475 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3877        .14959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1633        .39065        .22691E-04   -1.5492    
   5  Prefactor     .10000E-03    2.0077        .90346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.603        18.739        .10477E-03   -1.4944    
   7  Prefactor     .10000E-03    5.9236        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3046        45.167        .26933E-03   -1.5404    
   9  norm          .10000E-03    6.4636        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6978        .16568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    77.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.694        26.443        .71173E-04   -1.4581    
  13  norm          2.3100        2.4173        .99342E-04   -1.5404    
  14  Prefactor     .10000E-03    5.9618        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8341        6.6040        .76722E-03   -1.5185    
  16  Prefactor     8.6931        150.84        .13575E-03   -1.5118    
  17  norm          3.5780        1.9067        .53330E-04   -1.5330    
  18  Prefactor     .56469        190.51        .50722E-02   -1.5558    
  19  Prefactor     1.6837        1.6200        .77931E-04   -1.5448    
  20  norm          .10000E-03    8.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3894        87.764        .26426E-03   -1.5399    
  22  Prefactor     .10001E-03    54.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.662        2.8839        .45962E-04   -1.4942    
  24  Prefactor     .10000E-03    15.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.9547        4.7254        .94239E-04   -1.5109    
  26  Prefactor     8.4482        7.8354        .13791E-03   -1.5127    
  27  Prefactor     3.1022        3.1956        .10909E-03   -1.5356    
  28  Prefactor     .10000E-03    2.1027        .18389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .45363        .26202        .35119E-03   -1.1462    
  30  Prefactor     1.3594        .28860        .25624E-03   -.81558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93124e-08
Minuit parameter uncertainties:
  1  0.000175546
  2  0.000806245
  3  6.0063e-06
  4  0.390654
  5  9.29026e-06
  6  18.746
  7  1.29941e-05
  8  20.4225
  9  1.11219e-05
  10  1.25351e-05
  11  0.000639041
  12  26.453
  13  2.41741
  14  8.55441e-06
  15  6.60474
  16  72.638
  17  1.90669
  18  20.8096
  19  1.62005
  20  3.34303e-06
  21  29.0074
  22  0.00167708
  23  2.88389
  24  3.08094e-05
  25  4.72565
  26  7.83631
  27  3.1958
  28  6.79349e-06
  29  0.26273
  30  0.288939
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.834e+00  6.605e+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:  1.359e+00  2.889e-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:  4.536e-01  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.25e-05

TS (Fixed Index): 1.72
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945736/likelihoodResults_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.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): 0
logL (Free Index) = 4365.28786267
delta logL = 0.0644304219804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4365.28566692
delta logL = 0.0666261779361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5157       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8490       1.0000          .0000       10.000    
     3 'Normalizat'    .44460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3667       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=   4365.286     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      227 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5157        143.01        .42769E-02    .77365E-03
   2  Index         2.8494        6.3900        .20132        .50650E-04
   3  Normalizat    .44470        .75077E-01    .80030E-01    .26714E-04
   4  Prefactor     1.3666        .88079E-01    .57819E-01   -.69820E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.5157
  Index      = 2.84939
  Normalizat = 0.444702
  Prefactor  = 1.36658
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.286     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5157        7.0883        .13481E-03   -1.5238    
   2  Index         2.8494        .89197        .72584E-02   -.44463    
   3  Normalizat    .44470        .23638        .35449E-03   -1.1505    
   4  Prefactor     1.3666        .28520        .25564E-03   -.81348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67972e-10
Minuit parameter uncertainties:
  1  7.08934
  2  0.897883
  3  0.236917
  4  0.285533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945736': 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) = 4365.28566659
delta logL = 0.0666264994506

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.516e+00  7.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.849e+00  8.979e-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:  1.367e+00  2.855e-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:  4.447e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.85 +/- 0.90
Photon Flux (Free Index): 5.52e-08 +/- 5.23e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.15e-05

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/945736/cmap_HighResolution_315273601_315532801_4FGL_J1136.2+3407_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='1.20e-05', photon_flux_error='4.57e-08', dlogl='6.66e-02', energy_flux='1.30e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-04 05:08:54.357996', photon_index_error2='0.90', photon_index2='2.85', ts='1.72', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.15e-05', EG='0.45', time_epoch_completed='1630757334.36', return_code='0', job_id='945736', GAL2='1.37', EG2='0.44', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.23e-08', ts2='1.85', photon_index='2.55' WHERE bin_id='293' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 945736: <4FGL_J1136.2+3407_daily_bin293> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin293> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:44 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:46 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:46 2021
Terminated at Sat Sep  4 05:08:55 2021
Results reported at Sat Sep  4 05:08:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin293 174.075 34.129 315273601 315532801 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 :                                   721.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

