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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin383
RA = 174.075, Dec = 34.129
tmin = 338601601, tmax = 338860801
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='946679', job_status='RUN', time_executed='2021-09-04 04:59:09.757167', time_epoch_executed='1630756749.76' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946679

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946679/ft1_4FGL_J1136.2+3407_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946679/ft2_4FGL_J1136.2+3407_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946679/ft1_4FGL_J1136.2+3407_daily_bin383.fits outfile=/scratch/kocevski/946679/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin383.fits ra=174.075 dec=34.129 rad=12.0 tmin=338601601.0 tmax=338860801.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 5.16
user 4.86
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946679/ft2_4FGL_J1136.2+3407_daily_bin383.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/946679/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin383.fits evtable="EVENTS" outfile="/scratch/kocevski/946679/ft1_filtered_4FGL_J1136.2+3407_daily_bin383.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946679/ft1_filtered_4FGL_J1136.2+3407_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/946679/ft2_4FGL_J1136.2+3407_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/946679/ltcube_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.fits outfile=/scratch/kocevski/946679/expmap_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.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/946679/ltcube_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.fits
.....................!
real 192.32
user 187.25
sys 4.61

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/946679/ft1_filtered_4FGL_J1136.2+3407_daily_bin383.fits scfile=/scratch/kocevski/946679/ft2_4FGL_J1136.2+3407_daily_bin383.fits outfile=/scratch/kocevski/946679/cmap_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.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 1.15
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946679/ft1_filtered_4FGL_J1136.2+3407_daily_bin383.fits scfile=/scratch/kocevski/946679/ft2_4FGL_J1136.2+3407_daily_bin383.fits outfile=/scratch/kocevski/946679/cmap_HighResolution_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.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.71
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.317       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.897       1.0000         .10000E-03   10000.    
    17 'norm      '    .11772E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.768       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6393       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9882       1.0000         .10000E-03   10000.    
    25 'norm      '    4.1541       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6231       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4795       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71247       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6609.724     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     3248 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.989        .87368E-05** at limit **
   2  Prefactor     .10001E-03    11.088        .12921E-04** at limit **
   3  Prefactor     11.318        1.0036        .65350E-07    .21521E-04
   4  norm          2.1878        .41273       -.27838E-09    .13236E-02
   5  Prefactor     .10000E-03    1.9434        .22771E-06** at limit **
   6  Prefactor     3.5703        1.0236        .22693E-06    .20226E-04
   7  Prefactor     .10000E-03    4.8782       -.25258E-06** at limit **
   8  norm          .10000E-03    7.1948       -.89981E-05** at limit **
   9  norm          14.573        1.0010       -.12588E-07    .36056E-04
  10  Prefactor     6.6404        3.2121       -.11258E-05   -.30347E-03
  11  Prefactor     .10000E-03    31.783       -.29420E-04** at limit **
  12  Prefactor     11.348        1.0076       -.12396E-06    .41860E-04
  13  norm          4.7856        2.9811        .17746E-05    .13440E-02
  14  Prefactor     5.3157        1.0055        .48323E-07    .45822E-05
  15  Prefactor     14.531        1.0300       -.10145E-06   -.13939E-03
  16  Prefactor     53.898        1.1395        .30130E-06   -.12550E-02
  17  norm          .10000E-03    1.5675        .10092E-06** at limit **
  18  Prefactor     .10000E-03    7.5562       -.80179E-05** at limit **
  19  Prefactor     .10000E-03    .95247       -.69861E-07** at limit **
  20  norm          1.1606        1.1560       -.32660E-06   -.85648E-04
  21  Prefactor     11.766        1.4425       -.11894E-05    .97859E-03
  22  Prefactor     .10001E-03    15.175        .21545E-04** at limit **
  23  norm          3.6394        1.5213        .16376E-07    .27397E-03
  24  Prefactor     6.9884        1.0044        .93306E-07   -.75551E-04
  25  norm          4.1540        1.7968        .33185E-06    .41778E-03
  26  Prefactor     .10000E-03    3.5583       -.56246E-11** at limit **
  27  Prefactor     4.6232        2.0618        .47936E-06    .81735E-03
  28  Prefactor     1.4794        1.6905       -.12852E-06    .36469E-04
  29  Normalizat    .71248        .21661        .16548E-06    .18196E-03
  30  Prefactor     1.4986        .26027       -.41895E-06    .27195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 11.3177
  norm       = 2.18785
  Prefactor  = 0.0001
  Prefactor  = 3.57029
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.5733
  Prefactor  = 6.64042
  Prefactor  = 0.000100003
  Prefactor  = 11.3482
  norm       = 4.78564
  Prefactor  = 5.31568
  Prefactor  = 14.5311
  Prefactor  = 53.8975
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.16062
  Prefactor  = 11.7657
  Prefactor  = 0.000100005
  norm       = 3.63938
  Prefactor  = 6.98835
  norm       = 4.15403
  Prefactor  = 0.0001
  Prefactor  = 4.62316
  Prefactor  = 1.47945
  Normalizat = 0.712484
  Prefactor  = 1.49865
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.724     FROM HESSE     STATUS=OK           664 CALLS     3912 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    26.431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.318        13.966        .29771E-02   -1.5035    
   4  norm          2.1878        .41878        .49668E-02   -1.5412    
   5  Prefactor     .10000E-03    1.9072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5703        12.771        .53483E-02   -1.5330    
   7  Prefactor     .10000E-03    4.8746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.573        12.271        .26230E-02   -1.4944    
  10  Prefactor     6.6404        3.2691        .38931E-02   -1.5193    
  11  Prefactor     .10000E-03    32.875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.348        13.610        .29730E-02   -1.5034    
  13  norm          4.7856        3.0527        .45977E-02   -1.5270    
  14  Prefactor     5.3157        9.3393        .43584E-02   -1.5247    
  15  Prefactor     14.531        6.7547        .26268E-02   -1.4945    
  16  Prefactor     53.898        50.300        .13659E-02   -1.4238    
  17  norm          .10000E-03    .76979        .22850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .92032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1606        7.2475        .10691E-01   -1.5493    
  21  Prefactor     11.766        25.326        .29194E-02   -1.5022    
  22  Prefactor     .10001E-03    24.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6394        1.5313        .52941E-02   -1.5326    
  24  Prefactor     6.9884        46.568        .37940E-02   -1.5179    
  25  norm          4.1540        3.5827        .49439E-02   -1.5300    
  26  Prefactor     .10000E-03    3.5452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.6232        3.2751        .46797E-02   -1.5278    
  28  Prefactor     1.4794        1.6983        .88230E-02   -1.5465    
  29  Normalizat    .71248        .19373        .73030E-01   -1.0340    
  30  Prefactor     1.4986        .22269        .63267E-01   -.77578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16164e-06
Minuit parameter uncertainties:
  1  0.000112174
  2  0.00119538
  3  13.9702
  4  0.418783
  5  3.08173e-05
  6  12.7805
  7  4.56539e-05
  8  0.000162341
  9  12.2728
  10  3.26923
  11  0.000624168
  12  13.6137
  13  3.05284
  14  9.34185
  15  6.75502
  16  50.3396
  17  9.89744e-06
  18  0.000265637
  19  2.20587e-05
  20  5.80134
  21  25.3495
  22  0.000709368
  23  1.53136
  24  36.1199
  25  3.5829
  26  3.64872e-05
  27  3.27527
  28  1.69838
  29  0.193914
  30  0.222834
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.453e+01  6.755e+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.499e+00  2.228e-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.125e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.57
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.67e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.28e-05

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) = 6608.86562582
delta logL = 0.85821357702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.72600754
delta logL = 0.997831858956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.138       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0219       1.0000          .0000       10.000    
     3 'Normalizat'    .74684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4684       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=   6608.726     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      212 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.138        9.6892        .23510E-02    .15444E-02
   2  Index         2.0219        .36673        .15173       -.60274E-04
   3  Normalizat    .74685        .18322        .71509E-01    .41995E-04
   4  Prefactor     1.4684        .22062        .63770E-01   -.27297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1384
  Index      = 2.02187
  Normalizat = 0.746847
  Prefactor  = 1.46841
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.726     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.138        8.3410        .94042E-04   -1.4856    
   2  Index         2.0219        .34216        .61756E-02   -.63804    
   3  Normalizat    .74685        .21533        .31648E-03   -1.0207    
   4  Prefactor     1.4684        .25965        .28202E-03   -.78428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22742e-10
Minuit parameter uncertainties:
  1  8.34154
  2  0.342572
  3  0.215574
  4  0.259887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946679': 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) = 6608.72600754
delta logL = 0.997831861688

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.814e+01  8.342e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.022e+00  3.426e-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.468e+00  2.599e-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.468e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.59
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.02 +/- 0.34
Photon Flux (Free Index): 7.20e-08 +/- 4.00e-08
Energy Flux (Free Index): 4.72e-05 +/- 3.23e-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/946679/cmap_HighResolution_338601601_338860801_4FGL_J1136.2+3407_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='4.72e-05', photon_flux_error='4.67e-08', dlogl='9.98e-01', energy_flux='2.76e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-04 05:12:06.376972', photon_index_error2='0.34', photon_index2='2.02', ts='10.57', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='3.23e-05', EG='0.71', time_epoch_completed='1630757526.38', return_code='0', job_id='946679', GAL2='1.47', EG2='0.75', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.00e-08', ts2='12.59', photon_index='2.55' WHERE bin_id='383' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 946679: <4FGL_J1136.2+3407_daily_bin383> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin383> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:56:22 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:56:24 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:56:24 2021
Terminated at Sat Sep  4 05:12:06 2021
Results reported at Sat Sep  4 05:12:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin383 174.075 34.129 338601601 338860801 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 :                                   769.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

