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


Performing analysis on: 4FGL_J1135.7-0427_daily_bin345
RA = 173.943, Dec = -4.4634
tmin = 328752001, tmax = 329011201
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='937511', job_status='RUN', time_executed='2021-09-04 04:29:23.308157', time_epoch_executed='1630754963.31' WHERE source_name='4FGL J1135.7-0427' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937511/ft1_4FGL_J1135.7-0427_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937511/ft1_4FGL_J1135.7-0427_daily_bin345.fits outfile=/scratch/kocevski/937511/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin345.fits ra=173.943 dec=-4.4634 rad=12.0 tmin=328752001.0 tmax=329011201.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/937511/ltcube_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.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/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits
.....................!
real 12.44
user 12.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/937511/ltcube_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.fits outfile=/scratch/kocevski/937511/expmap_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.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/937511/ltcube_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.fits
.....................!
real 191.66
user 185.44
sys 5.83

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/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits scfile=/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits outfile=/scratch/kocevski/937511/cmap_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.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.81
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits scfile=/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits outfile=/scratch/kocevski/937511/cmap_HighResolution_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/937511/ft2_4FGL_J1135.7-0427_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937511/Model_4FGL_J1135.7-0427_daily_bin345.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/937511/ft1_filtered_4FGL_J1135.7-0427_daily_bin345.fits.....................!
real 51.87
user 50.26
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8213       1.0000         .10000E-03   10000.    
     2 'norm      '    12.079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13281E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.458       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .93692       1.0000         .10000E-03   10000.    
    26 'norm      '    .15171E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94189       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=   5494.601     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3442 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8211        .84499       -.81713E-07    .47473E-03
   2  norm          12.079        7.6597       -.19846E-06    .68777E-04
   3  Prefactor     .10000E-03    7.6489       -.14839E-05** at limit **
   4  Prefactor     .10000E-03    33.715       -.15453E-04** at limit **
   5  Prefactor     14.282        13.628       -.24754E-06    .32258E-03
   6  Prefactor     .10000E-03    2.4224       -.91409E-07** at limit **
   7  Prefactor     .10000E-03    22.848        .12070E-04** at limit **
   8  norm          .10000E-03    5.0333       -.72066E-06** at limit **
   9  Prefactor     .10000E-03    1.1637       -.10670E-06** at limit **
  10  Prefactor     .10000E-03    15.488       -.10958E-04** at limit **
  11  norm          .10000E-03    5.9438        .28335E-05** at limit **
  12  Prefactor     1.0393        2.3590       -.75076E-06   -.10054E-02
  13  Prefactor     .10000E-03    9.6903        .97503E-05** at limit **
  14  Prefactor     .10000E-03    33.635       -.10887E-04** at limit **
  15  norm          8.0756        7.3107       -.58735E-06   -.12062E-03
  16  Prefactor     .10000E-03    2.5275       -.39457E-06** at limit **
  17  Prefactor     .10000E-03    26.989        .15433E-04** at limit **
  18  Prefactor     11.825        14.939       -.61612E-07    .22732E-04
  19  Prefactor     .10000E-03    30.622        .62347E-05** at limit **
  20  Prefactor     .10000E-03    2.5946        .48737E-06** at limit **
  21  Prefactor     .10000E-03    7.3711       -.42239E-05** at limit **
  22  Prefactor     .10000E-03    13.316       -.71424E-05** at limit **
  23  Prefactor     16.430        46.527       -.57264E-04    .16424E-04
  24  Prefactor     .10000E-03    11.508        .27582E-05** at limit **
  25  Prefactor     .92433        14.704       -.47642E-06   -.43516E-04
  26  norm          .10000E-03    1.9827       -.22442E-06** at limit **
  27  Normalizat    1.0631        .21158        .67606E-05    .36586E-04
  28  Prefactor     .94171        .14939       -.15442E-05    .54798E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82114
  norm       = 12.0792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.07563
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.8252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4296
  Prefactor  = 0.0001
  Prefactor  = 0.92433
  norm       = 0.000100004
  Normalizat = 1.06309
  Prefactor  = 0.941715
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.601     FROM HESSE     STATUS=OK           507 CALLS     3949 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8211        .84461        .36063E-04   -1.5372    
   2  norm          12.079        7.6596        .11526E-03   -1.5013    
   3  Prefactor     .10000E-03    7.7265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.282        13.576        .10595E-03   -1.4952    
   6  Prefactor     .10000E-03    2.4403        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.0619        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1662        .78077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9439        .17650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0393        2.3221        .16308E-03   -1.5504    
  13  Prefactor     .10000E-03    9.6956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0756        7.3018        .14106E-03   -1.5140    
  16  Prefactor     .10000E-03    2.5843        .22963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.825        14.940        .11649E-03   -1.5020    
  19  Prefactor     .10000E-03    30.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5989        .11663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.430        46.635        .98726E-04   -1.4897    
  24  Prefactor     .10000E-03    11.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .92433        36.894        .46134E-02   -1.5516    
  26  norm          .10000E-03    7.7487        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0631        .24649        .28311E-03   -.90946    
  28  Prefactor     .94171        .17505        .21723E-03   -.94698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22634e-08
Minuit parameter uncertainties:
  1  0.844618
  2  7.66023
  3  2.58826e-06
  4  3.90493e-05
  5  13.579
  6  1.08976e-05
  7  1.0664e-05
  8  1.19299e-05
  9  3.3305e-06
  10  3.04761e-05
  11  2.79954e-06
  12  2.3223
  13  1.50707e-05
  14  3.98448e-05
  15  7.30262
  16  1.2964e-05
  17  0.000249188
  18  14.9443
  19  3.72592e-05
  20  3.46169e-05
  21  1.17902e-05
  22  8.99372e-06
  23  46.7389
  24  2.15856e-05
  25  11.6865
  26  0.000365465
  27  0.24676
  28  0.175156
Done.

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

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.507e-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:  9.417e-01  1.752e-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.063e+00  2.468e-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: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937511/likelihoodResults_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.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) = 5494.60175957
delta logL = -0.000491248510116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5494.60126943
delta logL = -1.110555786e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12802E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5657       1.0000          .0000       10.000    
     3 'Normalizat'    1.0631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94174       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=   5494.601     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    63.833        .18142E-01** at limit **
   2  Index         1.7976        5.7241        .50000        .39772E-06
   3  Normalizat    1.0631        .87698E-02    .28311E-03   -.22931E-03
   4  Prefactor     .94171        .64114E-02    .21723E-03   -.38160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 1.79756
  Normalizat = 1.06309
  Prefactor  = 0.941708
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.601     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    329.85        .35441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7976        7.2918        .50000       -.69513    
   3  Normalizat    1.0631        .20148E-01    .56622E-04   -.90946    
   4  Prefactor     .94171        .14730E-01    .43447E-04   -.94699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.59353e-10
Minuit parameter uncertainties:
  1  0.00472783
  2  661.882
  3  0.0201485
  4  0.0147301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937511': 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) = 5494.60126523
delta logL = 3.09229017148e-06

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.728e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.798e+00  6.619e+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:  9.417e-01  1.473e-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.063e+00  2.015e-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/937511/cmap_HighResolution_328752001_329011201_4FGL_J1135.7-0427_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-04 04:41:51.340949', job_id='937511', GAL2='0.94', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630755711.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='345' AND source_name='4FGL J1135.7-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 937511: <4FGL_J1135.7-0427_daily_bin345> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin345> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 04:26:46 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:26:47 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:26:47 2021
Terminated at Sat Sep  4 04:41:51 2021
Results reported at Sat Sep  4 04:41:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin345 173.943 -4.4634 328752001 329011201 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

