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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin384
RA = 174.075, Dec = 34.129
tmin = 338860801, tmax = 339120001
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='946681', job_status='RUN', time_executed='2021-09-04 04:56:35.131030', time_epoch_executed='1630756595.13' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946681

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946681/ft1_4FGL_J1136.2+3407_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946681/ft1_4FGL_J1136.2+3407_daily_bin384.fits outfile=/scratch/kocevski/946681/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin384.fits ra=174.075 dec=34.129 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.72
user 4.45
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946681/ft1_filtered_4FGL_J1136.2+3407_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/946681/ltcube_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.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/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits
.....................!
real 12.35
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946681/ft1_filtered_4FGL_J1136.2+3407_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/946681/ltcube_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.fits outfile=/scratch/kocevski/946681/expmap_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.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/946681/ltcube_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.fits
.....................!
real 194.03
user 185.91
sys 4.56

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/946681/ft1_filtered_4FGL_J1136.2+3407_daily_bin384.fits scfile=/scratch/kocevski/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits outfile=/scratch/kocevski/946681/cmap_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946681/ft1_filtered_4FGL_J1136.2+3407_daily_bin384.fits scfile=/scratch/kocevski/946681/ft2_4FGL_J1136.2+3407_daily_bin384.fits outfile=/scratch/kocevski/946681/cmap_HighResolution_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10146E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6667       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.482       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0249       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1084       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0092       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6389       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.381       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13172E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7291       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1137       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89578       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1571       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=   6477.230     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     3942 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6680       -.79210E-07** at limit **
   2  Prefactor     .10000E-03    142.02        .28229E-06** at limit **
   3  Prefactor     9.6670        7.7932       -.22202E-07    .18801E-04
   4  norm          1.3865        .33710        .13802E-08    .42143E-05
   5  Prefactor     .10000E-03    1.1743       -.22407E-06** at limit **
   6  Prefactor     .10000E-03    8.2041       -.11816E-06** at limit **
   7  Prefactor     .10000E-03    4.5900       -.34885E-07** at limit **
   8  norm          15.484        13.548       -.17738E-06    .17676E-04
   9  norm          3.2220        11.644       -.25327E-05    .44498E-04
  10  Prefactor     6.1307        3.3702        .30052E-06   -.61594E-04
  11  Prefactor     .10000E-03    62.092        .81723E-06** at limit **
  12  Prefactor     11.487        19.730       -.92501E-06    .66663E-04
  13  norm          3.0785        2.7703       -.16644E-06   -.28467E-04
  14  Prefactor     .10000E-03    42.035       -.14628E-05** at limit **
  15  Prefactor     16.416        7.6444       -.12690E-06    .70074E-04
  16  Prefactor     16.589        32.720        .11714E-05    .19208E-06
  17  norm          3.0812        1.4128       -.24777E-06    .43969E-03
  18  Prefactor     12.263        29.929       -.67089E-06    .39138E-04
  19  Prefactor     3.0249        2.2250       -.99061E-07    .10438E-03
  20  norm          1.1168        13.796       -.32546E-05   -.12719E-04
  21  Prefactor     .10000E-03    21.658       -.35012E-06** at limit **
  22  Prefactor     7.9389        115.44        .79108E-05    .34599E-04
  23  norm          3.6390        1.5099       -.46046E-07    .16830E-03
  24  Prefactor     28.382        36.607       -.36073E-07    .49982E-04
  25  norm          1.0598        1.5904        .85298E-06    .13002E-03
  26  Prefactor     .10000E-03    96.096        .10811E-04** at limit **
  27  Prefactor     1.7290        1.6201        .57218E-07   -.25552E-04
  28  Prefactor     6.1134        3.2745       -.22612E-06    .65886E-04
  29  Normalizat    .89585        .19721        .18797E-05    .75036E-04
  30  Prefactor     1.1570        .21626       -.27387E-06    .25522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66697
  norm       = 1.38654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4835
  norm       = 3.22202
  Prefactor  = 6.13073
  Prefactor  = 0.0001
  Prefactor  = 11.4873
  norm       = 3.07847
  Prefactor  = 0.0001
  Prefactor  = 16.4156
  Prefactor  = 16.5887
  norm       = 3.08119
  Prefactor  = 12.2634
  Prefactor  = 3.02493
  norm       = 1.11682
  Prefactor  = 0.0001
  Prefactor  = 7.93885
  norm       = 3.63901
  Prefactor  = 28.3815
  norm       = 1.05977
  Prefactor  = 0.0001
  Prefactor  = 1.72901
  Prefactor  = 6.11343
  Normalizat = 0.895851
  Prefactor  = 1.15702
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.230     FROM HESSE     STATUS=OK           602 CALLS     4544 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    142.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6670        7.7926        .12889E-03   -1.5086    
   4  norm          1.3865        .33798        .22234E-04   -1.5472    
   5  Prefactor     .10000E-03    1.1883        .85149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5921        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.484        13.542        .10179E-03   -1.4921    
   9  norm          3.2220        11.607        .22570E-03   -1.5349    
  10  Prefactor     6.1307        3.3518        .99871E-04   -1.5213    
  11  Prefactor     .10000E-03    62.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.487        19.617        .11819E-03   -1.5030    
  13  norm          3.0785        2.7557        .11804E-03   -1.5357    
  14  Prefactor     .10000E-03    43.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.416        7.6362        .98857E-04   -1.4897    
  16  Prefactor     16.589        32.683        .98337E-04   -1.4893    
  17  norm          3.0812        1.4123        .55048E-04   -1.5357    
  18  Prefactor     12.263        29.838        .11439E-03   -1.5007    
  19  Prefactor     3.0249        2.2130        .95223E-04   -1.5360    
  20  norm          1.1168        13.945        .44919E-03   -1.5497    
  21  Prefactor     .10000E-03    21.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9389        116.56        .14167E-03   -1.5144    
  23  norm          3.6390        1.5066        .59987E-04   -1.5326    
  24  Prefactor     28.382        36.265        .75202E-04   -1.4642    
  25  norm          1.0598        1.5905        .15090E-02   -1.5502    
  26  Prefactor     .10000E-03    92.679        .37064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.7290        1.6327        .95225E-04   -1.5445    
  28  Prefactor     6.1134        3.2756        .10207E-03   -1.5213    
  29  Normalizat    .89585        .22948        .28740E-03   -.96606    
  30  Prefactor     1.1570        .25512        .29761E-03   -.87664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37572e-10
Minuit parameter uncertainties:
  1  3.52334e-06
  2  1.41102e-05
  3  7.79347
  4  0.337978
  5  2.16642e-07
  6  2.02782e-05
  7  4.44456e-06
  8  13.5448
  9  11.6152
  10  3.35189
  11  0.000190217
  12  19.6277
  13  2.75586
  14  0.000179669
  15  7.63667
  16  32.7181
  17  1.41232
  18  29.8741
  19  2.21301
  20  7.89479
  21  2.90046e-05
  22  60.9813
  23  1.50662
  24  36.2929
  25  1.59056
  26  0.000339858
  27  1.63278
  28  3.27574
  29  0.22973
  30  0.255395
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.642e+01  7.637e+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.157e+00  2.554e-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:  8.959e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.11
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.45e-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) = 6476.95784213
delta logL = 0.272092252736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6476.95657874
delta logL = 0.273355644646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.872       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2463       1.0000          .0000       10.000    
     3 'Normalizat'    .92212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1341       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6476.957     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      292 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.872        8.9015        .92196E-04    .53206E-03
   2  Index         2.2463        .39430        .63777E-02    .12081E-03
   3  Normalizat    .92211        .21842        .28361E-03   -.45216E-04
   4  Prefactor     1.1341        .25219        .30013E-03   -.37273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8722
  Index      = 2.24633
  Normalizat = 0.922106
  Prefactor  = 1.13411
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.957     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.872        8.8634        .18439E-04   -1.4839    
   2  Index         2.2463        .39246        .25511E-03   -.58324    
   3  Normalizat    .92211        .21858        .11344E-04   -.95688    
   4  Prefactor     1.1341        .25237        .12005E-04   -.88384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17147e-10
Minuit parameter uncertainties:
  1  8.86399
  2  0.393043
  3  0.218788
  4  0.252637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946681': 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) = 6476.95657874
delta logL = 0.273355646232

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.887e+01  8.864e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.246e+00  3.930e-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.134e+00  2.526e-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.221e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.66
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.25 +/- 0.39
Photon Flux (Free Index): 9.27e-08 +/- 5.27e-08
Energy Flux (Free Index): 3.83e-05 +/- 2.22e-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/946681/cmap_HighResolution_338860801_339120001_4FGL_J1136.2+3407_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.83e-05', photon_flux_error='5.28e-08', dlogl='2.73e-01', energy_flux='3.12e-05', photon_flux2='9.27e-08', job_status='DONE', time_completed='2021-09-04 05:10:13.410475', photon_index_error2='0.39', photon_index2='2.25', ts='10.11', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='0.90', time_epoch_completed='1630757413.41', return_code='0', job_id='946681', GAL2='1.13', EG2='0.92', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.27e-08', ts2='10.66', photon_index='2.55' WHERE bin_id='384' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 946681: <4FGL_J1136.2+3407_daily_bin384> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin384> 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) <bullet0237>, 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:10:14 2021
Results reported at Sat Sep  4 05:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin384 174.075 34.129 338860801 339120001 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 :                                   808.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

