/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 34 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 = 7599
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1135.7-0427_daily_bin1647
RA = 173.943, Dec = -4.4634
tmin = 666230401, tmax = 666489601
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='826323', job_status='RUN', time_executed='2022-02-14 00:12:18.438297', time_epoch_executed='1644826338.44' WHERE source_name='4FGL J1135.7-0427' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826323/ft1_4FGL_J1135.7-0427_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826323/ft1_4FGL_J1135.7-0427_daily_bin1647.fits outfile=/scratch/kocevski/826323/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin1647.fits ra=173.943 dec=-4.4634 rad=12.0 tmin=666230401.0 tmax=666489601.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.27
user 4.03
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/826323/ltcube_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.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/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits
.....................!
real 21.88
user 21.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/826323/ltcube_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.fits outfile=/scratch/kocevski/826323/expmap_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.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/826323/ltcube_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.fits
.....................!
real 190.42
user 185.11
sys 4.97

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/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits scfile=/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits outfile=/scratch/kocevski/826323/cmap_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits scfile=/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits outfile=/scratch/kocevski/826323/cmap_HighResolution_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/826323/ft2_4FGL_J1135.7-0427_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826323/Model_4FGL_J1135.7-0427_daily_bin1647.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/826323/ft1_filtered_4FGL_J1135.7-0427_daily_bin1647.fits.....................!
real 38.16
user 36.85
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.507       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7734       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.518       1.0000         .10000E-03   10000.    
    11 'norm      '    19.174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62214E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    117.61       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3329       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    72.322       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7634       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78848       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0563       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=   3499.720     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3491 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78929       -.13998E-06** at limit **
   2  norm          8.4814        7.7846       -.12474E-06   -.20514E-04
   3  Prefactor     18.200        17.011        .36164E-06    .98944E-04
   4  Prefactor     .10000E-03    11.574       -.71620E-06** at limit **
   5  Prefactor     .10000E-03    25.403        .22911E-05** at limit **
   6  Prefactor     .10000E-03    2.7990        .17705E-06** at limit **
   7  Prefactor     77.492        93.814        .13397E-05   -.81972E-05
   8  norm          1.7754        9.3534        .95211E-05    .92740E-04
   9  Prefactor     .10000E-03    1.7050        .10666E-06** at limit **
  10  Prefactor     18.518        15.021        .12368E-06   -.85534E-05
  11  norm          19.190        25.041       -.87209E-06    .69836E-05
  12  Prefactor     6.4515        4.8153       -.26269E-07   -.95459E-05
  13  Prefactor     .10000E-03    22.101       -.17104E-06** at limit **
  14  Prefactor     .10000E-03    27.244        .13681E-05** at limit **
  15  norm          .10000E-03    3.9443        .83117E-08** at limit **
  16  Prefactor     .10077E-03    4.5813        .12831E-05** at limit **
  17  Prefactor     117.59        39.298        .27668E-05    .14593E-03
  18  Prefactor     .10000E-03    12.611        .15820E-05** at limit **
  19  Prefactor     .10000E-03    22.423       -.32425E-06** at limit **
  20  Prefactor     3.3369        7.3883        .11148E-07   -.20517E-04
  21  Prefactor     .10000E-03    14.850       -.15152E-05** at limit **
  22  Prefactor     .10000E-03    33.792       -.88899E-07** at limit **
  23  Prefactor     .10000E-03    34.856       -.59215E-06** at limit **
  24  Prefactor     72.262        36.347        .41306E-05   -.12033E-04
  25  Prefactor     2.7594        8.8798        .29318E-07    .98985E-04
  26  norm          .10000E-03    2.2770       -.56649E-06** at limit **
  27  Normalizat    .78861        .30123        .97851E-06    .63637E-04
  28  Prefactor     1.0560        .21621       -.20110E-05    .10206E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.48144
  Prefactor  = 18.2004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.492
  norm       = 1.77541
  Prefactor  = 0.0001
  Prefactor  = 18.5183
  norm       = 19.1896
  Prefactor  = 6.45151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100773
  Prefactor  = 117.589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.2619
  Prefactor  = 2.75945
  norm       = 0.0001
  Normalizat = 0.788607
  Prefactor  = 1.05596
 **********
 **   18 **HESSE 
 **********

 FCN=   3499.720     FROM HESSE     STATUS=OK           519 CALLS     4010 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0978        .91001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4814        7.7868        .68829E-03   -1.5125    
   3  Prefactor     18.200        15.181        .93918E-04   -1.4854    
   4  Prefactor     .10000E-03    11.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8080        .96644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.492        93.791        .45613E-04   -1.3945    
   8  norm          1.7754        9.3785        .15720E-02   -1.5441    
   9  Prefactor     .10000E-03    1.7063        .75428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.518        15.014        .93074E-04   -1.4847    
  11  norm          19.190        25.043        .91468E-04   -1.4832    
  12  Prefactor     6.4515        4.8204        .10529E-03   -1.5200    
  13  Prefactor     .10000E-03    22.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9531        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10077E-03    47.580        .21759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     117.59        38.012        .18551E-03   -1.3535    
  18  Prefactor     .10000E-03    12.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3369        7.3676        .22171E-03   -1.5343    
  21  Prefactor     .10000E-03    14.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     72.262        36.081        .23604E-03   -1.4006    
  25  Prefactor     2.7594        8.2888        .24485E-03   -1.5376    
  26  norm          .10000E-03    3.1762        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78861        .34680        .34050E-03   -1.0049    
  28  Prefactor     1.0560        .25109        .21719E-03   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61118e-08
Minuit parameter uncertainties:
  1  2.97144e-06
  2  7.78777
  3  15.1841
  4  8.31265e-07
  5  8.15809e-06
  6  5.95007e-06
  7  93.9705
  8  8.1628
  9  2.95468e-06
  10  15.0172
  11  25.0569
  12  4.82073
  13  4.88965e-05
  14  4.16488e-05
  15  1.06915e-05
  16  0.0121424
  17  38.0195
  18  3.62226e-05
  19  1.83408e-05
  20  7.36964
  21  5.16174e-05
  22  1.87468e-05
  23  1.2673e-05
  24  36.0918
  25  8.29226
  26  2.0494e-05
  27  0.347776
  28  0.251371
Done.

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

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.890e-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:  1.056e+00  2.514e-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:  7.886e-01  3.478e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826323/likelihoodResults_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.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) = 3499.72001039
delta logL = -0.000214929586946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3499.71979819
delta logL = -2.7350270102e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15214E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8666       1.0000          .0000       10.000    
     3 'Normalizat'    .78860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0560       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=   3499.720     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10398E-03    10.647        .18142E-01** at limit **
   2  Index         2.7737        5.7852        .50000        .19831E-04
   3  Normalizat    .78861        .55155E-02    .34049E-03   -.11519E-05
   4  Prefactor     1.0560        .40451E-02    .21719E-03   -.15128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103975
  Index      = 2.77366
  Normalizat = 0.788607
  Prefactor  = 1.05596
 **********
 **   18 **HESSE 
 **********

 FCN=   3499.720     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10398E-03    86.228        .24069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7737        8.6033        .50000       -.46147    
   3  Normalizat    .78861        .15662E-01    .13620E-04   -1.0049    
   4  Prefactor     1.0560        .11487E-01    .86875E-05   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05934e-09
Minuit parameter uncertainties:
  1  0.0370829
  2  243.672
  3  0.0156621
  4  0.0114868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826323': 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) = 3499.71979615
delta logL = -6.93976744515e-07

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.040e-04  3.708e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.774e+00  2.437e+02  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.056e+00  1.149e-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:  7.886e-01  1.566e-02  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/826323/cmap_HighResolution_666230401_666489601_4FGL_J1135.7-0427_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2022-02-14 00:22:32.008448', job_id='826323', GAL2='1.06', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1644826952.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-6.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1647' AND source_name='4FGL J1135.7-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:22:32 PST 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 826478: <4FGL_J1135.7-0427_daily_bin1647> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin1647> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 14 00:07:35 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:07:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:07:38 2022
Terminated at Mon Feb 14 00:21:10 2022
Results reported at Mon Feb 14 00:21:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin1647 173.943 -4.4634 666230401 666489601 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 :                                   596.00 sec.
    Max Memory :                                 766 MB
    Average Memory :                             243.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 826323: <4FGL_J1135.7-0427_daily_bin1647> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin1647> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Feb 14 00:07:26 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:07:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:07:28 2022
Terminated at Mon Feb 14 00:22:32 2022
Results reported at Mon Feb 14 00:22:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin1647 173.943 -4.4634 666230401 666489601 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

