/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 231 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 = 7660
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin873
RA = 174.075, Dec = 34.129
tmin = 465609601, tmax = 465868801
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='949931', job_status='RUN', time_executed='2021-09-04 05:10:46.185663', time_epoch_executed='1630757446.19' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949931/ft1_4FGL_J1136.2+3407_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949931/ft2_4FGL_J1136.2+3407_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949931/ft1_4FGL_J1136.2+3407_daily_bin873.fits outfile=/scratch/kocevski/949931/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin873.fits ra=174.075 dec=34.129 rad=12.0 tmin=465609601.0 tmax=465868801.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.51
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949931/ft1_filtered_4FGL_J1136.2+3407_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/949931/ft2_4FGL_J1136.2+3407_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/949931/ltcube_465609601_465868801_4FGL_J1136.2+3407_daily_bin873.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/949931/ft2_4FGL_J1136.2+3407_daily_bin873.fits
.....................!
real 11.93
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949931/ft1_filtered_4FGL_J1136.2+3407_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/949931/ft2_4FGL_J1136.2+3407_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/949931/ltcube_465609601_465868801_4FGL_J1136.2+3407_daily_bin873.fits outfile=/scratch/kocevski/949931/expmap_465609601_465868801_4FGL_J1136.2+3407_daily_bin873.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/949931/ltcube_465609601_465868801_4FGL_J1136.2+3407_daily_bin873.fits
.....................!
real 190.38
user 185.46
sys 4.44

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.132       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .79018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .60475       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.219       1.0000         .10000E-03   10000.    
    13 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .37637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43313       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.279       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1453       1.0000         .10000E-03   10000.    
    23 'norm      '    5.9614       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5124       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.5122       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4103       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.1825       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2308       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57067       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=   5423.251     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3959 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.127        25.495       -.52206E-06   -.96889E-04
   2  Prefactor     .10000E-03    48.136       -.41904E-05** at limit **
   3  Prefactor     .10000E-03    40.590        .33179E-05** at limit **
   4  norm          1.9288        .39232       -.56727E-08   -.19362E-03
   5  Prefactor     .88397        3.3520        .21726E-05   -.18967E-03
   6  Prefactor     .80821        9.8945        .57115E-07    .45010E-05
   7  Prefactor     .10000E-03    4.1213       -.13380E-07** at limit **
   8  norm          .10000E-03    6.5745       -.30373E-07** at limit **
   9  norm          .64063        9.6716       -.46583E-06    .10626E-04
  10  Prefactor     2.1104        1.8455        .93972E-08   -.68126E-04
  11  Prefactor     .10000E-03    22.026       -.94506E-06** at limit **
  12  Prefactor     16.218        12.993       -.12874E-06   -.25120E-04
  13  norm          .10000E-03    1.2888        .11990E-06** at limit **
  14  Prefactor     5.8704        7.2390        .48136E-06   -.41558E-04
  15  Prefactor     5.8936        3.6478       -.45005E-07   -.86816E-04
  16  Prefactor     .10000E-03    16.882        .68078E-06** at limit **
  17  norm          .37626        .56801        .57062E-07    .15659E-03
  18  Prefactor     4.8181        20.419       -.42138E-06   -.27229E-04
  19  Prefactor     .43277        1.6470        .10301E-05   -.23121E-04
  20  norm          .10000E-03    4.3352       -.66631E-07** at limit **
  21  Prefactor     24.281        24.242        .50476E-06    .24879E-04
  22  Prefactor     4.1325        48.485       -.32525E-05   -.62797E-04
  23  norm          5.9615        1.7180        .41857E-08   -.14678E-03
  24  Prefactor     .10000E-03    17.491       -.30254E-06** at limit **
  25  norm          1.5122        2.3825        .18110E-06   -.16305E-04
  26  Prefactor     8.5126        7.1875        .22065E-06    .48028E-04
  27  Prefactor     2.4102        2.0288       -.69676E-08    .15853E-04
  28  Prefactor     5.1826        2.7031        .18503E-07   -.61722E-04
  29  Normalizat    1.2310        .19000       -.10416E-05   -.18993E-03
  30  Prefactor     .57053        .20142       -.53861E-07   -.13665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1265
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.92881
  Prefactor  = 0.883966
  Prefactor  = 0.80821
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.640632
  Prefactor  = 2.11044
  Prefactor  = 0.0001
  Prefactor  = 16.2181
  norm       = 0.0001
  Prefactor  = 5.87036
  Prefactor  = 5.89365
  Prefactor  = 0.0001
  norm       = 0.376263
  Prefactor  = 4.81813
  Prefactor  = 0.432773
  norm       = 0.0001
  Prefactor  = 24.2807
  Prefactor  = 4.13246
  norm       = 5.96148
  Prefactor  = 0.0001
  norm       = 1.51218
  Prefactor  = 8.51257
  Prefactor  = 2.41023
  Prefactor  = 5.18257
  Normalizat = 1.23095
  Prefactor  = 0.570535
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.251     FROM HESSE     STATUS=OK           602 CALLS     4561 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.127        25.571        .78364E-04   -1.4685    
   2  Prefactor     .10000E-03    49.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9288        .39222        .19729E-04   -1.5430    
   5  Prefactor     .88397        3.3788        .24012E-03   -1.5520    
   6  Prefactor     .80821        29.525        .43333E-02   -1.5528    
   7  Prefactor     .10000E-03    4.1220        .14600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .64063        40.298        .42838E-02   -1.5548    
  10  Prefactor     2.1104        1.8259        .89327E-04   -1.5417    
  11  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.218        12.987        .99452E-04   -1.4902    
  13  norm          .10000E-03    2.1769        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8704        7.2458        .82872E-03   -1.5223    
  15  Prefactor     5.8936        3.6479        .10720E-03   -1.5222    
  16  Prefactor     .10000E-03    16.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .37626        .51818        .65696E-03   -1.5585    
  18  Prefactor     4.8181        19.695        .18341E-03   -1.5269    
  19  Prefactor     .43277        1.6460        .17240E-03   -1.5576    
  20  norm          .10000E-03    4.3391        .14973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.281        24.325        .81296E-04   -1.4722    
  22  Prefactor     4.1325        50.250        .19797E-03   -1.5301    
  23  norm          5.9615        1.7153        .48711E-04   -1.5220    
  24  Prefactor     .10000E-03    17.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5122        2.3574        .13097E-03   -1.5462    
  26  Prefactor     8.5126        7.1950        .13740E-03   -1.5124    
  27  Prefactor     2.4102        2.0338        .88901E-04   -1.5397    
  28  Prefactor     5.1826        2.6981        .83855E-04   -1.5253    
  29  Normalizat    1.2310        .21067        .21535E-03   -.85652    
  30  Prefactor     .57053        .22293        .34729E-03   -1.0884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5426e-10
Minuit parameter uncertainties:
  1  25.5818
  2  0.00085949
  3  0.000114306
  4  0.39222
  5  3.37956
  6  9.77448
  7  6.34171e-07
  8  3.25218e-06
  9  10.1684
  10  1.8259
  11  0.000126006
  12  12.9891
  13  8.85993e-06
  14  7.24686
  15  3.64804
  16  8.77645e-05
  17  0.518184
  18  19.4937
  19  1.64621
  20  5.43302e-06
  21  24.3347
  22  28.8503
  23  1.71534
  24  4.3919e-05
  25  2.35751
  26  7.19575
  27  2.03382
  28  2.69818
  29  0.21082
  30  0.223271
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.894e+00  3.648e+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:  5.705e-01  2.233e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.231e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.49
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 6.93e-06

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) = 5421.48043602
delta logL = 1.77014557913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.42789708
delta logL = 1.8226845211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0066       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6395       1.0000          .0000       10.000    
     3 'Normalizat'    1.2510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55565       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=   5421.428     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0102        4.3581        .37889E-02    .11426E-03
   2  Index         1.6399        .34581        .16626       -.13064E-03
   3  Normalizat    1.2509        .16983        .48396E-01    .15209E-03
   4  Prefactor     .55579        .19369        .79314E-01    .26273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.01019
  Index      = 1.63992
  Normalizat = 1.25088
  Prefactor  = 0.555791
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.428     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0102        4.7176        .11826E-03   -1.5178    
   2  Index         1.6399        .40989        .67199E-02   -.73693    
   3  Normalizat    1.2509        .19222        .21395E-03   -.85045    
   4  Prefactor     .55579        .21861        .35129E-03   -1.0948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71286e-10
Minuit parameter uncertainties:
  1  4.71785
  2  0.41073
  3  0.192327
  4  0.218946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949931': 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) = 5421.42789624
delta logL = 1.8226853623

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.010e+00  4.718e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.640e+00  4.107e-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:  5.558e-01  2.189e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.251e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.15
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.64 +/- 0.41
Photon Flux (Free Index): 2.18e-08 +/- 1.62e-08
Energy Flux (Free Index): 4.33e-05 +/- 4.89e-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/949931/cmap_HighResolution_465609601_465868801_4FGL_J1136.2+3407_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='4.33e-05', photon_flux_error='2.52e-08', dlogl='1.82e+00', energy_flux='1.12e-05', photon_flux2='2.18e-08', job_status='DONE', time_completed='2021-09-04 05:23:07.011724', photon_index_error2='0.41', photon_index2='1.64', ts='9.49', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='4.89e-05', EG='1.23', time_epoch_completed='1630758187.01', return_code='0', job_id='949931', GAL2='0.56', EG2='1.25', return_code2='0', energy_flux_error='6.93e-06', photon_flux_error2='1.62e-08', ts2='13.15', photon_index='2.55' WHERE bin_id='873' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 949931: <4FGL_J1136.2+3407_daily_bin873> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin873> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:45 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06: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 05:06:46 2021
Terminated at Sat Sep  4 05:23:07 2021
Results reported at Sat Sep  4 05:23:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin873 174.075 34.129 465609601 465868801 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

