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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1575
RA = 178.348, Dec = -11.075
tmin = 647568001, tmax = 647827201
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='147771', job_status='RUN', time_executed='2021-09-04 15:00:38.759584', time_epoch_executed='1630792838.76' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147771/ft1_4FGL_J1153.3-1104_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147771/ft1_4FGL_J1153.3-1104_daily_bin1575.fits outfile=/scratch/kocevski/147771/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1575.fits ra=178.348 dec=-11.075 rad=12.0 tmin=647568001.0 tmax=647827201.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.44
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.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/147771/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1575.fits evtable="EVENTS" outfile="/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/147771/ltcube_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.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/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits
.....................!
real 12.72
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/147771/ltcube_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits outfile=/scratch/kocevski/147771/expmap_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.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/147771/ltcube_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits
.....................!
real 190.74
user 185.38
sys 4.62

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

Setting source of interest to:
4FGL J1153.3-1104 @ 178.348 -11.075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits outfile=/scratch/kocevski/147771/cmap_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.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=178.348 yref=-11.075 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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits outfile=/scratch/kocevski/147771/cmap_HighResolution_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.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=178.348 yref=-11.075 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147771/Model_4FGL_J1153.3-1104_daily_bin1575.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/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits.....................!
real 59.01
user 57.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits', '/scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits', expMap='/scratch/kocevski/147771/expmap_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits', expCube='/scratch/kocevski/147771/ltcube_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147771/Model_4FGL_J1153.3-1104_daily_bin1575.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.3-1104'

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  3.746e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147771/ft1_filtered_4FGL_J1153.3-1104_daily_bin1575.fits
Spacecraft file(s): /scratch/kocevski/147771/ft2_4FGL_J1153.3-1104_daily_bin1575.fits
Exposure map: /scratch/kocevski/147771/expmap_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits
Exposure cube: /scratch/kocevski/147771/ltcube_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147771/Model_4FGL_J1153.3-1104_daily_bin1575.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) = 6383.63035933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9193       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0830       1.0000         .10000E-03   10000.    
     9 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55151E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6276       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .54628       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4861       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6383.618     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3501 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.805        .30910E-05** at limit **
   2  Prefactor     .10000E-03    12.877       -.12710E-05** at limit **
   3  Prefactor     .10000E-03    2.6927       -.26492E-06** at limit **
   4  Prefactor     .10000E-03    25.141       -.39984E-05** at limit **
   5  norm          5.9209        9.7865       -.16039E-05   -.13557E-04
   6  norm          .10000E-03    .52964        .17217E-07** at limit **
   7  Prefactor     13.219        7.1563        .40465E-06    .12209E-03
   8  Prefactor     6.0769        13.845        .53001E-06   -.16894E-04
   9  norm          .10000E-03    43.197       -.19046E-05** at limit **
  10  Prefactor     .10000E-03    10.278        .13645E-05** at limit **
  11  Prefactor     .10000E-03    50.359        .48284E-05** at limit **
  12  norm          .10000E-03    3.9465        .37548E-07** at limit **
  13  Prefactor     3.6747        3.8396        .87461E-07    .11452E-04
  14  Prefactor     52.902        28.203       -.50519E-06   -.39875E-04
  15  Prefactor     .10000E-03    8.2483        .10270E-05** at limit **
  16  Prefactor     .10000E-03    8.5167       -.15193E-05** at limit **
  17  norm          .10216E-03    22.257       -.11891E-04** at limit **
  18  Prefactor     3.8302        33.122       -.14489E-06   -.10226E-05
  19  Prefactor     .10000E-03    14.193        .41438E-06** at limit **
  20  Prefactor     .10000E-03    13.708       -.40519E-06** at limit **
  21  Prefactor     .10000E-03    12.955       -.75551E-06** at limit **
  22  Prefactor     .10000E-03    45.391       -.24536E-06** at limit **
  23  norm          .10000E-03    1.2729        .16644E-07** at limit **
  24  Prefactor     .10000E-03    2.8095        .40386E-07** at limit **
  25  Prefactor     4.6283        2.4534       -.83702E-07    .80353E-04
  26  Prefactor     .46409        83.659        .24444E-04    .27128E-03
  27  Normalizat    1.4864        .26401       -.12057E-05    .71545E-04
  28  Prefactor     1.0157        .15858        .66159E-07    .89284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.92089
  norm       = 0.0001
  Prefactor  = 13.2191
  Prefactor  = 6.07687
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.67475
  Prefactor  = 52.9024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102163
  Prefactor  = 3.83023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62829
  Prefactor  = 0.464087
  Normalizat = 1.4864
  Prefactor  = 1.01573
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.618     FROM HESSE     STATUS=OK           525 CALLS     4026 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7081        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9209        9.7958        .82526E-03   -1.5221    
   6  norm          .10000E-03    .93515        .11291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.219        7.1693        .11016E-03   -1.4981    
   8  Prefactor     6.0769        13.872        .16279E-03   -1.5215    
   9  norm          .10000E-03    43.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9713        .15493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6747        3.8220        .14998E-03   -1.5325    
  14  Prefactor     52.902        28.250        .55139E-04   -1.4252    
  15  Prefactor     .10000E-03    8.2516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10216E-03    5.5604        .45590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8302        33.078        .20624E-03   -1.5317    
  19  Prefactor     .10000E-03    14.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2828        .88022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8280        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6283        2.4547        .87878E-04   -1.5278    
  26  Prefactor     .46409        96.301        .43836E-02   -1.5572    
  27  Normalizat    1.4864        .31627        .31342E-03   -.78161    
  28  Prefactor     1.0157        .18975        .23170E-03   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26238e-09
Minuit parameter uncertainties:
  1  4.45422e-05
  2  2.19697e-05
  3  6.76382e-06
  4  5.99871e-05
  5  9.79842
  6  8.73606e-06
  7  7.1698
  8  13.8798
  9  4.41306e-05
  10  1.40213e-05
  11  3.26557e-05
  12  4.37397e-06
  13  3.82225
  14  28.2569
  15  9.21987e-06
  16  1.72809e-06
  17  0.0069373
  18  22.5285
  19  1.31295e-05
  20  6.36028e-07
  21  4.31392e-06
  22  1.28573e-05
  23  5.60576e-07
  24  3.16741e-06
  25  2.45472
  26  13.3909
  27  0.316688
  28  0.189872
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  5.290e+01  2.826e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  1.016e+00  1.899e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.486e+00  3.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 7.14e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 2.56e-05

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) = 6382.21854287
delta logL = 1.39969757059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.20681052
delta logL = 1.41142991625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.074       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1449       1.0000          .0000       10.000    
     3 'Normalizat'    1.3603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   6382.207     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      286 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.071        26.396        .87251E-04   -.35181E-03
   2  Index         3.1452        .67265        .32104E-02    .68157E-03
   3  Normalizat    1.3603        .31335        .32450E-03   -.36926E-03
   4  Prefactor     1.0653        .19208        .22670E-03   -.65851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.071
  Index      = 3.14515
  Normalizat = 1.36033
  Prefactor  = 1.06533
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.207     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.071        21.545        .34900E-05   -1.4790    
   2  Index         3.1452        .54906        .64209E-03   -.38005    
   3  Normalizat    1.3603        .31204        .64900E-04   -.81783    
   4  Prefactor     1.0653        .19132        .45340E-04   -.90582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59896e-10
Minuit parameter uncertainties:
  1  21.5532
  2  0.550345
  3  0.312478
  4  0.191438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147771': 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) = 6382.20681029
delta logL = 1.41143014644

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  2.107e+01  2.155e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  3.145e+00  5.503e-01  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  1.065e+00  1.914e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.360e+00  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 3.15 +/- 0.55
Photon Flux (Free Index): 2.49e-07 +/- 1.13e-07
Energy Flux (Free Index): 4.66e-05 +/- 1.95e-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/147771/cmap_HighResolution_647568001_647827201_4FGL_J1153.3-1104_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='4.66e-05', photon_flux_error='7.14e-08', dlogl='1.41e+00', energy_flux='4.79e-05', photon_flux2='2.49e-07', job_status='DONE', time_completed='2021-09-04 15:13:13.717051', photon_index_error2='0.55', photon_index2='3.15', ts='6.19', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.49', time_epoch_completed='1630793593.72', return_code='0', job_id='147771', GAL2='1.07', EG2='1.36', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='1.13e-07', ts2='9.30', photon_index='2.34' WHERE bin_id='1575' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:13:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 147771: <4FGL_J1153.3-1104_daily_bin1575> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin1575> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:04 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 14:57:06 2021
Terminated at Sat Sep  4 15:13:14 2021
Results reported at Sat Sep  4 15:13:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1575 178.348 -11.075 647568001 647827201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.3-1104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

