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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1548
RA = 178.348, Dec = -11.075
tmin = 640569601, tmax = 640828801
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='147734', job_status='RUN', time_executed='2021-09-04 14:59:31.060850', time_epoch_executed='1630792771.06' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147734/ft1_4FGL_J1153.3-1104_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147734/ft1_4FGL_J1153.3-1104_daily_bin1548.fits outfile=/scratch/kocevski/147734/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1548.fits ra=178.348 dec=-11.075 rad=12.0 tmin=640569601.0 tmax=640828801.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 2.96
user 2.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/147734/ltcube_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.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/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits
.....................!
real 12.64
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/147734/ltcube_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits outfile=/scratch/kocevski/147734/expmap_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.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/147734/ltcube_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits
.....................!
real 191.37
user 186.14
sys 4.81

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/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits scfile=/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits outfile=/scratch/kocevski/147734/cmap_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits scfile=/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits outfile=/scratch/kocevski/147734/cmap_HighResolution_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147734/Model_4FGL_J1153.3-1104_daily_bin1548.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/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits.....................!
real 38.50
user 37.30
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits', '/scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits', expMap='/scratch/kocevski/147734/expmap_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits', expCube='/scratch/kocevski/147734/ltcube_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147734/Model_4FGL_J1153.3-1104_daily_bin1548.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/147734/ft1_filtered_4FGL_J1153.3-1104_daily_bin1548.fits
Spacecraft file(s): /scratch/kocevski/147734/ft2_4FGL_J1153.3-1104_daily_bin1548.fits
Exposure map: /scratch/kocevski/147734/expmap_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits
Exposure cube: /scratch/kocevski/147734/ltcube_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147734/Model_4FGL_J1153.3-1104_daily_bin1548.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) = 3308.04265803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.796       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    40.771       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11600E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    124.45       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11950E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    352.48       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1903       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87125       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=   3307.912     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3558 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.681        18.963        .79907E-06    .32985E-04
   2  Prefactor     .10000E-03    5.8996        .59372E-06** at limit **
   3  Prefactor     10.796        8.9847       -.92888E-06   -.13407E-06
   4  Prefactor     .10000E-03    260.79       -.30570E-05** at limit **
   5  norm          40.776        20.228       -.67979E-06    .34667E-04
   6  norm          2.6301        2.3243       -.13737E-06   -.67734E-04
   7  Prefactor     1.6783        15.706       -.28657E-05   -.18536E-04
   8  Prefactor     .10000E-03    5.3817        .36916E-06** at limit **
   9  norm          .10000E-03    13.874       -.31667E-06** at limit **
  10  Prefactor     .10000E-03    45.880       -.79876E-06** at limit **
  11  Prefactor     .10000E-03    19.243        .69473E-06** at limit **
  12  norm          .10000E-03    29.981        .22750E-05** at limit **
  13  Prefactor     .10000E-03    152.09        .15731E-04** at limit **
  14  Prefactor     124.46        52.842        .20405E-06   -.41088E-04
  15  Prefactor     .10000E-03    11.207        .44563E-06** at limit **
  16  Prefactor     .10000E-03    99.281       -.37331E-05** at limit **
  17  norm          13.359        20.489       -.75176E-06    .43211E-04
  18  Prefactor     .10000E-03    49.647       -.20726E-05** at limit **
  19  Prefactor     .10000E-03    46.639        .29543E-05** at limit **
  20  Prefactor     .10000E-03    43.690        .31083E-05** at limit **
  21  Prefactor     .10000E-03    21.412        .76296E-06** at limit **
  22  Prefactor     352.60        373.30        .10387E-04    .11039E-04
  23  norm          .10000E-03    1.7743        .44992E-06** at limit **
  24  Prefactor     .10000E-03    9.7118       -.15840E-05** at limit **
  25  Prefactor     10.286        6.7427        .69643E-06    .35220E-04
  26  Prefactor     .10000E-03    18.696       -.63882E-06** at limit **
  27  Normalizat    1.1904        .36603        .25392E-05   -.87416E-04
  28  Prefactor     .87122        .21910       -.22097E-05    .43733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6812
  Prefactor  = 0.0001
  Prefactor  = 10.7962
  Prefactor  = 0.000100001
  norm       = 40.7757
  norm       = 2.63009
  Prefactor  = 1.67831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 352.597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2857
  Prefactor  = 0.0001
  Normalizat = 1.19042
  Prefactor  = 0.871217
 **********
 **   18 **HESSE 
 **********

 FCN=   3307.912     FROM HESSE     STATUS=OK           519 CALLS     4077 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.681        19.017        .12259E-03   -1.5054    
   2  Prefactor     .10000E-03    5.9166        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.796        8.9437        .12194E-03   -1.5051    
   4  Prefactor     .10000E-03    261.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          40.776        20.117        .62778E-04   -1.4430    
   6  norm          2.6301        2.3193        .78680E-04   -1.5384    
   7  Prefactor     1.6783        15.703        .32430E-03   -1.5449    
   8  Prefactor     .10000E-03    5.3887        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    30.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.296        .38376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     124.46        53.235        .36081E-04   -1.3472    
  15  Prefactor     .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    99.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.359        20.425        .10958E-03   -1.4977    
  18  Prefactor     .10000E-03    49.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     352.60        373.50        .10846E-03   -1.1930    
  23  norm          .10000E-03    1.7936        .74833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7637        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.286        6.7475        .11787E-03   -1.5066    
  26  Prefactor     .10000E-03    18.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1904        .42659        .32845E-03   -.86900    
  28  Prefactor     .87122        .25529        .24088E-03   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79931e-10
Minuit parameter uncertainties:
  1  19.0279
  2  2.14223e-05
  3  8.9448
  4  0.00122633
  5  20.1208
  6  2.31941
  7  10.2705
  8  6.12231e-06
  9  3.78784e-05
  10  0.000309178
  11  4.39004e-06
  12  0.000182161
  13  6.34359e-05
  14  53.2556
  15  7.73156e-06
  16  0.000342722
  17  20.4358
  18  1.78859e-05
  19  0.000113503
  20  3.31004e-05
  21  3.41614e-05
  22  376.102
  23  3.17089e-06
  24  5.09764e-05
  25  6.74796
  26  2.38919e-05
  27  0.427849
  28  0.255638
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.245e+02  5.326e+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:  8.712e-01  2.556e-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.190e+00  4.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.98
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.15e-07 +/- 1.34e-07
Energy Flux (Fixed Index): 1.13e-04 +/- 4.82e-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) = 3307.43742127
delta logL = 0.474785643968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3307.43656126
delta logL = 0.475645661125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.223       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7288       1.0000          .0000       10.000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91000       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=   3307.437     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      294 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.271        59.807        .44296E-04    .26009E-03
   2  Index         2.7291        .45075        .26826E-02    .18199E-03
   3  Normalizat    1.0982        .40500        .33961E-03    .95121E-04
   4  Prefactor     .90967        .25462        .23627E-03    .33910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.2709
  Index      = 2.72914
  Normalizat = 1.09824
  Prefactor  = 0.909673
 **********
 **   18 **HESSE 
 **********

 FCN=   3307.437     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.271        56.314        .88592E-05   -1.3891    
   2  Index         2.7291        .42415        .10730E-03   -.47144    
   3  Normalizat    1.0982        .40441        .13584E-04   -.89809    
   4  Prefactor     .90967        .25433        .47254E-04   -.95804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82752e-10
Minuit parameter uncertainties:
  1  56.3505
  2  0.42479
  3  0.405554
  4  0.254658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147734': 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) = 3307.43655579
delta logL = 0.475651128522

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  8.227e+01  5.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.729e+00  4.248e-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:  9.097e-01  2.547e-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.098e+00  4.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.77
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 2.73 +/- 0.42
Photon Flux (Free Index): 4.28e-07 +/- 1.93e-07
Energy Flux (Free Index): 1.01e-04 +/- 3.91e-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/147734/cmap_HighResolution_640569601_640828801_4FGL_J1153.3-1104_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.15e-07', energy_flux2='1.01e-04', photon_flux_error='1.34e-07', dlogl='4.76e-01', energy_flux='1.13e-04', photon_flux2='4.28e-07', job_status='DONE', time_completed='2021-09-04 15:08:34.201656', photon_index_error2='0.42', photon_index2='2.73', ts='11.98', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.91e-05', EG='1.19', time_epoch_completed='1630793314.2', return_code='0', job_id='147734', GAL2='0.91', EG2='1.10', return_code2='0', energy_flux_error='4.82e-05', photon_flux_error2='1.93e-07', ts2='12.77', photon_index='2.34' WHERE bin_id='1548' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 147734: <4FGL_J1153.3-1104_daily_bin1548> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin1548> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:00 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:01 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:01 2021
Terminated at Sat Sep  4 15:08:34 2021
Results reported at Sat Sep  4 15:08:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1548 178.348 -11.075 640569601 640828801 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 :                                   541.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            694 sec.

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

