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


Performing analysis on: 4FGL_J1135.7-0427_daily_bin817
RA = 173.943, Dec = -4.4634
tmin = 451094401, tmax = 451353601
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='941405', job_status='RUN', time_executed='2021-09-04 04:41:18.656249', time_epoch_executed='1630755678.66' WHERE source_name='4FGL J1135.7-0427' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941405/ft1_4FGL_J1135.7-0427_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941405/ft1_4FGL_J1135.7-0427_daily_bin817.fits outfile=/scratch/kocevski/941405/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin817.fits ra=173.943 dec=-4.4634 rad=12.0 tmin=451094401.0 tmax=451353601.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.57
user 3.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.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/941405/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin817.fits evtable="EVENTS" outfile="/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.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.83
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/941405/ltcube_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.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/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits
.....................!
real 12.17
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/941405/ltcube_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits outfile=/scratch/kocevski/941405/expmap_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.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/941405/ltcube_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits
.....................!
real 192.49
user 185.66
sys 5.10

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1135.7-0427 @ 173.943 -4.4634

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits outfile=/scratch/kocevski/941405/cmap_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.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=173.943 yref=-4.4634 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits outfile=/scratch/kocevski/941405/cmap_HighResolution_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.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=173.943 yref=-4.4634 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/941405/Model_4FGL_J1135.7-0427_daily_bin817.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/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits.....................!
real 51.62
user 50.28
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits', '/scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits', expMap='/scratch/kocevski/941405/expmap_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits', expCube='/scratch/kocevski/941405/ltcube_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/941405/Model_4FGL_J1135.7-0427_daily_bin817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1135.7-0427'

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  4.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.601e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/941405/ft1_filtered_4FGL_J1135.7-0427_daily_bin817.fits
Spacecraft file(s): /scratch/kocevski/941405/ft2_4FGL_J1135.7-0427_daily_bin817.fits
Exposure map: /scratch/kocevski/941405/expmap_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits
Exposure cube: /scratch/kocevski/941405/ltcube_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/941405/Model_4FGL_J1135.7-0427_daily_bin817.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) = 5380.64803498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6505       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.735       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.732       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.905       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.6498       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5380.634     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3416 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6498        .71872       -.89059E-07   -.20174E-02
   2  norm          8.7940        9.3232       -.11796E-06   -.36965E-04
   3  Prefactor     .10000E-03    25.820        .11265E-04** at limit **
   4  Prefactor     .10000E-03    17.860       -.72983E-05** at limit **
   5  Prefactor     .10000E-03    4.3563        .20951E-06** at limit **
   6  Prefactor     .10000E-03    1.4533       -.15462E-07** at limit **
   7  Prefactor     .10000E-03    65.720        .17223E-04** at limit **
   8  norm          10.786        8.1355       -.17932E-07    .54760E-04
   9  Prefactor     .10000E-03    2.4819       -.38513E-07** at limit **
  10  Prefactor     .10000E-03    9.9799       -.73256E-05** at limit **
  11  norm          .10000E-03    8.5046        .33213E-05** at limit **
  12  Prefactor     1.9885        2.3025       -.85865E-07   -.25231E-03
  13  Prefactor     .10000E-03    19.916       -.11195E-04** at limit **
  14  Prefactor     .10000E-03    14.555        .54704E-05** at limit **
  15  norm          .10000E-03    3.5521       -.92223E-07** at limit **
  16  Prefactor     .10000E-03    1.0893       -.12452E-06** at limit **
  17  Prefactor     20.591        20.319       -.55950E-07    .12617E-04
  18  Prefactor     10.734        16.192        .12006E-06    .13166E-05
  19  Prefactor     .10000E-03    15.724        .16219E-05** at limit **
  20  Prefactor     .10000E-03    3.4133        .10437E-06** at limit **
  21  Prefactor     12.728        17.166       -.15934E-05   -.68876E-03
  22  Prefactor     .10000E-03    13.631        .66011E-05** at limit **
  23  Prefactor     .10000E-03    71.541       -.23548E-04** at limit **
  24  Prefactor     28.903        22.304       -.43717E-06    .18691E-04
  25  Prefactor     .10000E-03    5.3562       -.37730E-06** at limit **
  26  norm          5.6500        3.3293        .16897E-07   -.24780E-04
  27  Normalizat    1.1959        .21857        .70553E-06    .91143E-04
  28  Prefactor     .86035        .15524       -.13499E-06    .12811E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64979
  norm       = 8.79399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5911
  Prefactor  = 10.7343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9029
  Prefactor  = 0.0001
  norm       = 5.64996
  Normalizat = 1.19588
  Prefactor  = 0.860353
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.634     FROM HESSE     STATUS=OK           513 CALLS     3929 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6498        .71726        .39521E-04   -1.5451    
   2  norm          8.7940        9.3255        .13517E-03   -1.5115    
   3  Prefactor     .10000E-03    26.482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3619        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4575        .86335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    65.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.786        8.1327        .12199E-03   -1.5051    
   9  Prefactor     .10000E-03    2.5048        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.5033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9885        2.2935        .11450E-03   -1.5426    
  13  Prefactor     .10000E-03    19.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5911        .13498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0914        .74726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.591        20.324        .88268E-04   -1.4800    
  18  Prefactor     10.734        16.191        .12228E-03   -1.5053    
  19  Prefactor     .10000E-03    15.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4252        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.728        17.537        .56131E-03   -1.4994    
  22  Prefactor     .10000E-03    13.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    71.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.903        22.298        .74519E-04   -1.4632    
  25  Prefactor     .10000E-03    5.3617        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.6500        3.3263        .98641E-04   -1.5233    
  27  Normalizat    1.1959        .25689        .27399E-03   -.86730    
  28  Prefactor     .86035        .18192        .22976E-03   -.97541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46075e-09
Minuit parameter uncertainties:
  1  0.717266
  2  9.32706
  3  0.000206844
  4  1.89614e-05
  5  1.40491e-06
  6  1.03268e-07
  7  2.64436e-06
  8  8.13351
  9  1.69685e-06
  10  1.79928e-05
  11  5.44479e-07
  12  2.29364
  13  1.36141e-05
  14  1.7554e-06
  15  2.71496e-06
  16  8.97328e-07
  17  20.3304
  18  16.1975
  19  6.33647e-06
  20  1.46952e-06
  21  17.5442
  22  6.7769e-06
  23  9.78641e-05
  24  22.3048
  25  1.66012e-06
  26  3.32644
  27  0.257164
  28  0.182048
Done.

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

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.361e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.601e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.604e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.196e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.943 -4.463
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941405/likelihoodResults_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.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) = 5380.634591
delta logL = -0.000239535355831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5380.63435168
delta logL = -2.23197275773e-07

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 'Index     '    2.5051       1.0000          .0000       10.000    
     3 'Normalizat'    1.1959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5380.634     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1265.1        .90712E-02** at limit **
   2  Index         2.5236        5.1941        .50000       -.93847E-05
   3  Normalizat    1.1959        .51078E-01    .61946E-01    .20907E-04
   4  Prefactor     .86035        .37150E-01    .44498E-01    .22005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52359
  Normalizat = 1.19588
  Prefactor  = 0.860353
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.634     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6525.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5236        6.2618        .50000       -.51816    
   3  Normalizat    1.1959        .11003        .27399E-03   -.86730    
   4  Prefactor     .86035        .80098E-01    .22976E-03   -.97541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28223e-08
Minuit parameter uncertainties:
  1  0.000544832
  2  59.174
  3  0.110048
  4  0.0801089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941405': 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): 102
logL (Free Index) = 5380.63435164
delta logL = -1.78172740561e-07

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  5.448e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.524e+00  5.917e+01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.604e-01  8.011e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.196e+00  1.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.943 -4.463

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/941405/cmap_HighResolution_451094401_451353601_4FGL_J1135.7-0427_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-04 04:53:34.059505', job_id='941405', GAL2='0.86', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630756414.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='817' AND source_name='4FGL J1135.7-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:53:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 941405: <4FGL_J1135.7-0427_daily_bin817> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin817> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 04:41:03 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:41:05 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:41:05 2021
Terminated at Sat Sep  4 04:53:34 2021
Results reported at Sat Sep  4 04:53:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin817 173.943 -4.4634 451094401 451353601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1135.7-0427 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

