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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin318
RA = 174.075, Dec = 34.129
tmin = 321753601, tmax = 322012801
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='945775', job_status='RUN', time_executed='2021-09-04 04:53:05.693554', time_epoch_executed='1630756385.69' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945775/ft1_4FGL_J1136.2+3407_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945775/ft2_4FGL_J1136.2+3407_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945775/ft1_4FGL_J1136.2+3407_daily_bin318.fits outfile=/scratch/kocevski/945775/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin318.fits ra=174.075 dec=34.129 rad=12.0 tmin=321753601.0 tmax=322012801.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.37
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945775/ft1_filtered_4FGL_J1136.2+3407_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/945775/ft2_4FGL_J1136.2+3407_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/945775/ltcube_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.fits outfile=/scratch/kocevski/945775/expmap_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.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/945775/ltcube_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.fits
.....................!
real 191.13
user 185.82
sys 4.90

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/945775/ft1_filtered_4FGL_J1136.2+3407_daily_bin318.fits scfile=/scratch/kocevski/945775/ft2_4FGL_J1136.2+3407_daily_bin318.fits outfile=/scratch/kocevski/945775/cmap_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945775/ft1_filtered_4FGL_J1136.2+3407_daily_bin318.fits scfile=/scratch/kocevski/945775/ft2_4FGL_J1136.2+3407_daily_bin318.fits outfile=/scratch/kocevski/945775/cmap_HighResolution_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.927       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.201       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9981       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4025       1.0000         .10000E-03   10000.    
     8 'norm      '    24.109       1.0000         .10000E-03   10000.    
     9 'norm      '    6.3582       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4932       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11616E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7766       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1022       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.574       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9023       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.4326       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7811       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93385       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0613       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=   6756.344     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3913 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.164        23.256       -.70576E-06   -.55894E-04
   2  Prefactor     73.900        95.036       -.38366E-05   -.75883E-04
   3  Prefactor     19.202        11.473       -.19552E-07   -.69100E-06
   4  norm          1.8415        .39754        .15608E-07   -.30957E-03
   5  Prefactor     .10000E-03    2.7126       -.38458E-07** at limit **
   6  Prefactor     2.0172        48.541        .32727E-05    .57011E-04
   7  Prefactor     6.3859        16.753        .30426E-08   -.60335E-04
   8  norm          24.083        18.361       -.61977E-06   -.20254E-03
   9  norm          6.3589        10.547        .34946E-05   -.10938E-03
  10  Prefactor     .10000E-03    1.0208       -.18342E-07** at limit **
  11  Prefactor     .10000E-03    11.817       -.28528E-07** at limit **
  12  Prefactor     .10000E-03    4.6209       -.29000E-07** at limit **
  13  norm          .10000E-03    .68842        .17055E-07** at limit **
  14  Prefactor     7.4904        11.166       -.79324E-07   -.13417E-04
  15  Prefactor     .10000E-03    2.1216       -.49851E-07** at limit **
  16  Prefactor     .10000E-03    38.564        .21602E-05** at limit **
  17  norm          2.9426        1.1898        .24581E-07   -.99226E-04
  18  Prefactor     13.177        17.783       -.24291E-06   -.12520E-04
  19  Prefactor     .10000E-03    .92772        .30253E-07** at limit **
  20  norm          15.176        9.5418       -.12648E-07    .97694E-06
  21  Prefactor     5.7705        24.680       -.81095E-06   -.30821E-04
  22  Prefactor     .10000E-03    30.482       -.13910E-05** at limit **
  23  norm          3.1024        1.4346        .94635E-08   -.38047E-04
  24  Prefactor     17.578        22.435        .36379E-06    .18730E-04
  25  norm          3.9023        2.8747        .61814E-08   -.18759E-04
  26  Prefactor     .10000E-03    4.1119        .29396E-06** at limit **
  27  Prefactor     6.4327        3.1601       -.12601E-07   -.36975E-04
  28  Prefactor     7.7814        3.2810        .27170E-07    .11905E-04
  29  Normalizat    .93376        .18257       -.12960E-07   -.70715E-04
  30  Prefactor     1.0613        .19906       -.21392E-06   -.43285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1645
  Prefactor  = 73.8998
  Prefactor  = 19.2019
  norm       = 1.84149
  Prefactor  = 0.0001
  Prefactor  = 2.01717
  Prefactor  = 6.38594
  norm       = 24.0829
  norm       = 6.35893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.49038
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.94257
  Prefactor  = 13.1773
  Prefactor  = 0.0001
  norm       = 15.1763
  Prefactor  = 5.77051
  Prefactor  = 0.0001
  norm       = 3.10244
  Prefactor  = 17.5783
  norm       = 3.9023
  Prefactor  = 0.000100002
  Prefactor  = 6.43272
  Prefactor  = 7.78138
  Normalizat = 0.933755
  Prefactor  = 1.06135
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.344     FROM HESSE     STATUS=OK           600 CALLS     4513 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.164        23.347        .11036E-03   -1.4982    
   2  Prefactor     73.900        96.739        .23348E-03   -1.3987    
   3  Prefactor     19.202        11.445        .91403E-04   -1.4831    
   4  norm          1.8415        .40029        .21688E-04   -1.5437    
   5  Prefactor     .10000E-03    2.8239        .26335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0172        47.866        .29302E-03   -1.5424    
   7  Prefactor     6.3859        16.798        .15862E-03   -1.5203    
   8  norm          24.083        18.485        .81581E-04   -1.4726    
   9  norm          6.3589        10.776        .79590E-03   -1.5204    
  10  Prefactor     .10000E-03    1.0401        .81011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6229        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .69423        .66570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4904        11.156        .14651E-03   -1.5161    
  15  Prefactor     .10000E-03    2.1383        .11683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9426        1.1892        .53721E-04   -1.5365    
  18  Prefactor     13.177        17.584        .11035E-03   -1.4982    
  19  Prefactor     .10000E-03    1.5332        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.176        9.5451        .10281E-03   -1.4929    
  21  Prefactor     5.7705        24.889        .16711E-03   -1.5227    
  22  Prefactor     .10000E-03    30.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1024        1.4302        .63011E-04   -1.5356    
  24  Prefactor     17.578        22.399        .95539E-04   -1.4869    
  25  norm          3.9023        2.8767        .11025E-03   -1.5313    
  26  Prefactor     .10000E-03    15.589        .32168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.4327        3.1637        .94083E-04   -1.5201    
  28  Prefactor     7.7814        3.2784        .91668E-04   -1.5150    
  29  Normalizat    .93376        .21215        .26533E-03   -.95284    
  30  Prefactor     1.0613        .23173        .29373E-03   -.90712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48322e-10
Minuit parameter uncertainties:
  1  23.3634
  2  96.9457
  3  11.4459
  4  0.400294
  5  7.83689e-06
  6  19.6696
  7  16.8102
  8  18.4897
  9  10.7798
  10  1.43721e-07
  11  2.71112e-06
  12  1.91909e-06
  13  8.60808e-08
  14  11.159
  15  1.02058e-06
  16  0.000293924
  17  1.18924
  18  17.5909
  19  5.98506e-06
  20  9.54603
  21  23.985
  22  0.000183069
  23  1.43024
  24  22.4099
  25  2.87683
  26  0.000317405
  27  3.16375
  28  3.27851
  29  0.21234
  30  0.231954
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.021e-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.061e+00  2.320e-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.338e-01  2.123e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945775/likelihoodResults_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.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) = 6756.34585586
delta logL = -0.00222172811573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6756.3436342
delta logL = -6.77173375152e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5544       1.0000          .0000       10.000    
     3 'Normalizat'    .93378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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=   6756.344     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2478        .90712E-02** at limit **
   2  Index         2.5555        6.2767        .50000       -.52619E-05
   3  Normalizat    .93376        .16705        .45332E-01   -.31450E-05
   4  Prefactor     1.0613        .19674        .66403E-01    .78477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55553
  Normalizat = 0.933755
  Prefactor  = 1.06135
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.344     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1988        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5555        6.2444        .50000       -.51082    
   3  Normalizat    .93376        .19370        .26533E-03   -.95284    
   4  Prefactor     1.0613        .22802        .29373E-03   -.90712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03212e-11
Minuit parameter uncertainties:
  1  1.04431e-05
  2  5.33693
  3  0.193841
  4  0.228229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945775': 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) = 6756.34363413
delta logL = 2.70665623248e-09

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.044e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.556e+00  5.337e+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.061e+00  2.282e-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.338e-01  1.938e-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/945775/cmap_HighResolution_321753601_322012801_4FGL_J1136.2+3407_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-04 05:09:12.183143', job_id='945775', GAL2='1.06', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630757352.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.71e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='318' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:09:12 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin318 174.075 34.129 321753601 322012801 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.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

