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


Performing analysis on: 4FGL_J1135.7-0427_daily_bin804
RA = 173.943, Dec = -4.4634
tmin = 447724801, tmax = 447984001
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='940229', job_status='RUN', time_executed='2021-09-04 04:36:36.280631', time_epoch_executed='1630755396.28' WHERE source_name='4FGL J1135.7-0427' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940229

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940229/ft1_4FGL_J1135.7-0427_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940229/ft1_4FGL_J1135.7-0427_daily_bin804.fits outfile=/scratch/kocevski/940229/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin804.fits ra=173.943 dec=-4.4634 rad=12.0 tmin=447724801.0 tmax=447984001.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.39
user 3.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.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/940229/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin804.fits evtable="EVENTS" outfile="/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/940229/ltcube_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.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/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits
.....................!
real 11.66
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/940229/ltcube_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits outfile=/scratch/kocevski/940229/expmap_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.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/940229/ltcube_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits
.....................!
real 190.31
user 184.72
sys 5.24

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/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits outfile=/scratch/kocevski/940229/cmap_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits outfile=/scratch/kocevski/940229/cmap_HighResolution_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/940229/Model_4FGL_J1135.7-0427_daily_bin804.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/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits.....................!
real 50.63
user 49.19
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits', '/scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits', expMap='/scratch/kocevski/940229/expmap_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits', expCube='/scratch/kocevski/940229/ltcube_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/940229/Model_4FGL_J1135.7-0427_daily_bin804.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/940229/ft1_filtered_4FGL_J1135.7-0427_daily_bin804.fits
Spacecraft file(s): /scratch/kocevski/940229/ft2_4FGL_J1135.7-0427_daily_bin804.fits
Exposure map: /scratch/kocevski/940229/expmap_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits
Exposure cube: /scratch/kocevski/940229/ltcube_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/940229/Model_4FGL_J1135.7-0427_daily_bin804.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) = 5168.55134396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5874       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97820E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13963E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5596       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5647       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.050       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .76376       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92468       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0709       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=   5168.514     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3532 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5886        .91097        .27671E-06    .38635E-04
   2  norm          .10000E-03    2.8686       -.60264E-07** at limit **
   3  Prefactor     .10000E-03    94.809        .73198E-05** at limit **
   4  Prefactor     .10000E-03    21.848       -.28113E-06** at limit **
   5  Prefactor     .10000E-03    6.8262       -.45122E-06** at limit **
   6  Prefactor     .10000E-03    3.2194       -.26936E-06** at limit **
   7  Prefactor     .10000E-03    120.16       -.48281E-06** at limit **
   8  norm          .10000E-03    9.1687        .25071E-06** at limit **
   9  Prefactor     .10000E-03    2.7689       -.56113E-06** at limit **
  10  Prefactor     .10000E-03    3.1805        .47406E-07** at limit **
  11  norm          8.1553        30.729        .16469E-06    .33673E-04
  12  Prefactor     2.5584        2.8259       -.18963E-06    .15610E-03
  13  Prefactor     46.640        36.650       -.28976E-06   -.20633E-04
  14  Prefactor     .10000E-03    15.088        .37089E-06** at limit **
  15  norm          .10000E-03    2.8189       -.53698E-07** at limit **
  16  Prefactor     2.6373        3.5443       -.45156E-07   -.46240E-04
  17  Prefactor     .10000E-03    7.2105       -.36147E-08** at limit **
  18  Prefactor     .10000E-03    9.7700       -.21372E-06** at limit **
  19  Prefactor     .10000E-03    21.116        .18542E-06** at limit **
  20  Prefactor     2.5630        6.0154       -.64548E-06    .12348E-03
  21  Prefactor     26.285        18.501       -.17913E-06    .56337E-04
  22  Prefactor     .10000E-03    22.885        .52512E-07** at limit **
  23  Prefactor     50.016        41.828       -.88554E-06    .39772E-04
  24  Prefactor     .10000E-03    12.883       -.33894E-06** at limit **
  25  Prefactor     .10000E-03    5.3146        .13716E-06** at limit **
  26  norm          .76269        1.6411       -.11741E-05   -.58032E-03
  27  Normalizat    .92541        .23580        .23409E-05   -.98272E-04
  28  Prefactor     1.0705        .16703       -.55084E-06    .17992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58856
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.15534
  Prefactor  = 2.55839
  Prefactor  = 46.6398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.63728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56302
  Prefactor  = 26.2851
  Prefactor  = 0.0001
  Prefactor  = 50.0159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.762686
  Normalizat = 0.92541
  Prefactor  = 1.07049
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.514     FROM HESSE     STATUS=OK           517 CALLS     4049 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5886        .84664        .36182E-04   -1.5386    
   2  norm          .10000E-03    2.8814        .11892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    93.836        .37862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.134        .35875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2543        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    120.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.2291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7766        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1852        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1553        30.727        .14063E-03   -1.5137    
  12  Prefactor     2.5584        2.8149        .11979E-03   -1.5388    
  13  Prefactor     46.640        36.690        .58695E-04   -1.4341    
  14  Prefactor     .10000E-03    15.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8307        .11786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6373        3.5255        .14940E-03   -1.5383    
  17  Prefactor     .10000E-03    7.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5630        6.0440        .12745E-02   -1.5388    
  21  Prefactor     26.285        18.494        .78125E-04   -1.4682    
  22  Prefactor     .10000E-03    22.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.016        41.750        .28343E-03   -1.4292    
  24  Prefactor     .10000E-03    12.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.3360        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .76269        1.5163        .14872E-02   -1.5533    
  27  Normalizat    .92541        .26794        .30453E-03   -.95573    
  28  Prefactor     1.0705        .19192        .21265E-03   -.90415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24269e-10
Minuit parameter uncertainties:
  1  0.84664
  2  2.80117e-06
  3  0.000604825
  4  3.05202e-05
  5  0.000774952
  6  1.0947e-05
  7  9.83691e-05
  8  3.24214e-05
  9  3.86545e-05
  10  6.02541e-06
  11  30.7865
  12  2.81503
  13  36.7078
  14  2.47081e-05
  15  7.00645e-06
  16  3.52573
  17  8.54256e-06
  18  1.35664e-05
  19  3.45637e-05
  20  6.04542
  21  18.4981
  22  4.51729e-05
  23  41.7749
  24  2.57232e-05
  25  1.54723e-05
  26  1.51634
  27  0.268328
  28  0.192046
Done.

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

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  4.664e+01  3.671e+01  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:  1.070e+00  1.920e-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:  9.254e-01  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 173.943 -4.463
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 6.94e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.82e-05

TS (Fixed Index): 3.16
Ra Dec: 173.943 -4.463
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940229/likelihoodResults_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.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): 0
logL (Free Index) = 5168.47263544
delta logL = 0.0413202971067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5168.46620772
delta logL = 0.0477480202017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.970       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3891       1.0000          .0000       10.000    
     3 'Normalizat'    .94148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   5168.466     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      305 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.972        50.668        .53149E-04   -.11298E-03
   2  Index         2.3890        .67885        .70560E-02   -.26132E-04
   3  Normalizat    .94152        .25874        .30222E-03   -.13316E-04
   4  Prefactor     1.0613        .19042        .21341E-03   -.10715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.9719
  Index      = 2.38903
  Normalizat = 0.941519
  Prefactor  = 1.06134
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.466     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.972        48.533        .10630E-04   -1.4197    
   2  Index         2.3890        .64957        .28224E-03   -.54942    
   3  Normalizat    .94152        .25851        .12089E-04   -.95016    
   4  Prefactor     1.0613        .19032        .42682E-04   -.90712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26086e-11
Minuit parameter uncertainties:
  1  48.5668
  2  0.652109
  3  0.258854
  4  0.190437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940229': 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) = 5168.46620771
delta logL = 0.0477480328136

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  5.697e+01  4.857e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.389e+00  6.521e-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:  1.061e+00  1.904e-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:  9.415e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 173.943 -4.463
Photon Index (Free Index): 2.39 +/- 0.65
Photon Flux (Free Index): 7.80e-08 +/- 6.64e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.09e-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/940229/cmap_HighResolution_447724801_447984001_4FGL_J1135.7-0427_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='2.59e-05', photon_flux_error='6.94e-08', dlogl='4.77e-02', energy_flux='2.31e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-04 04:49:35.318674', photon_index_error2='0.65', photon_index2='2.39', ts='3.16', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='2.09e-05', EG='0.93', time_epoch_completed='1630756175.32', return_code='0', job_id='940229', GAL2='1.06', EG2='0.94', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='6.64e-08', ts2='3.25', photon_index='2.60' WHERE bin_id='804' AND source_name='4FGL J1135.7-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 940229: <4FGL_J1135.7-0427_daily_bin804> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin804> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 04:36:23 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:36: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:36:24 2021
Terminated at Sat Sep  4 04:49:36 2021
Results reported at Sat Sep  4 04:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin804 173.943 -4.4634 447724801 447984001 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

