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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin731
RA = 178.348, Dec = -11.075
tmin = 428803201, tmax = 429062401
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='142311', job_status='RUN', time_executed='2021-09-04 14:45:23.675163', time_epoch_executed='1630791923.68' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142311/ft1_4FGL_J1153.3-1104_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142311/ft1_4FGL_J1153.3-1104_daily_bin731.fits outfile=/scratch/kocevski/142311/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin731.fits ra=178.348 dec=-11.075 rad=12.0 tmin=428803201.0 tmax=429062401.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 7.49
user 6.28
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.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/142311/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/142311/ltcube_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.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/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits
.....................!
real 12.53
user 11.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/142311/ltcube_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.fits outfile=/scratch/kocevski/142311/expmap_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.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/142311/ltcube_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.fits
.....................!
real 191.23
user 185.22
sys 5.10

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/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits outfile=/scratch/kocevski/142311/cmap_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits outfile=/scratch/kocevski/142311/cmap_HighResolution_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/142311/ft2_4FGL_J1153.3-1104_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142311/Model_4FGL_J1153.3-1104_daily_bin731.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/142311/ft1_filtered_4FGL_J1153.3-1104_daily_bin731.fits.....................!
real 42.54
user 41.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0344       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13165E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15542E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10866E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.919       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9687       1.0000         .10000E-03   10000.    
    23 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6991       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5273       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5622       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80998       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=   4258.411     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3471 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1369        26.555       -.91327E-05    .31261E-04
   2  Prefactor     .37757        210.55        .57342E-04   -.17162E-04
   3  Prefactor     .10000E-03    2.9243        .24244E-06** at limit **
   4  Prefactor     .10000E-03    37.665       -.68411E-06** at limit **
   5  norm          .10000E-03    4.8369        .40939E-06** at limit **
   6  norm          3.4088        2.1816        .21519E-07   -.24348E-03
   7  Prefactor     3.7109        8.1480       -.11334E-05   -.32026E-04
   8  Prefactor     .10000E-03    21.280        .18021E-05** at limit **
   9  norm          22.326        35.045        .69751E-06    .40815E-04
  10  Prefactor     .10000E-03    36.158       -.13355E-05** at limit **
  11  Prefactor     .10000E-03    21.326        .12841E-05** at limit **
  12  norm          1.3647        4.7634       -.25612E-05    .16523E-03
  13  Prefactor     .10000E-03    3.3274        .22058E-06** at limit **
  14  Prefactor     .10000E-03    10.912        .93817E-06** at limit **
  15  Prefactor     .10000E-03    15.506       -.51860E-06** at limit **
  16  Prefactor     .10000E-03    15.268       -.20695E-06** at limit **
  17  norm          .10000E-03    6.0064        .82919E-06** at limit **
  18  Prefactor     .10000E-03    37.863       -.64909E-06** at limit **
  19  Prefactor     .10000E-03    8.5384       -.40752E-06** at limit **
  20  Prefactor     1.0351        242.61        .15587E-05    .28706E-04
  21  Prefactor     29.937        31.848        .40510E-06    .20348E-04
  22  Prefactor     4.9222        313.03       -.16873E-04   -.21342E-04
  23  norm          .10000E-03    1.2437        .52705E-07** at limit **
  24  Prefactor     4.6991        6.1024       -.13848E-06    .30083E-05
  25  Prefactor     3.5264        2.2676        .81518E-07   -.10291E-04
  26  Prefactor     .10000E-03    7.6254        .51255E-06** at limit **
  27  Normalizat    1.5619        .27815        .14162E-05   -.59338E-04
  28  Prefactor     .81019        .16890       -.22895E-05   -.35520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.13688
  Prefactor  = 0.377567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.40876
  Prefactor  = 3.71087
  Prefactor  = 0.000100001
  norm       = 22.3265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03509
  Prefactor  = 29.9371
  Prefactor  = 4.92216
  norm       = 0.0001
  Prefactor  = 4.69911
  Prefactor  = 3.52643
  Prefactor  = 0.0001
  Normalizat = 1.56195
  Prefactor  = 0.81019
 **********
 **   18 **HESSE 
 **********

 FCN=   4258.411     FROM HESSE     STATUS=OK           515 CALLS     3986 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1369        28.107        .13335E-03   -1.5103    
   2  Prefactor     .37757        231.66        .44964E-02   -1.5585    
   3  Prefactor     .10000E-03    2.9531        .10901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8453        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4088        2.1806        .74161E-04   -1.5339    
   7  Prefactor     3.7109        8.1104        .20957E-03   -1.5323    
   8  Prefactor     .10000E-03    21.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.326        34.918        .84785E-04   -1.4763    
  10  Prefactor     .10000E-03    36.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3647        4.7671        .13055E-02   -1.5474    
  13  Prefactor     .10000E-03    3.4911        .23256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1636        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0351        251.49        .40915E-02   -1.5504    
  21  Prefactor     29.937        31.911        .73249E-04   -1.4613    
  22  Prefactor     4.9222        313.51        .18042E-03   -1.5264    
  23  norm          .10000E-03    1.2474        .71056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6991        6.1005        .85653E-03   -1.5274    
  25  Prefactor     3.5264        2.2718        .73873E-04   -1.5332    
  26  Prefactor     .10000E-03    7.6536        .17605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5619        .32183        .28785E-03   -.76052    
  28  Prefactor     .81019        .19609        .23180E-03   -.99354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49571e-08
Minuit parameter uncertainties:
  1  28.1475
  2  18.7757
  3  2.37711e-05
  4  0.000122042
  5  4.91509e-05
  6  2.18066
  7  8.11279
  8  0.000277305
  9  34.9501
  10  0.000212839
  11  0.000163408
  12  4.7684
  13  4.94949e-05
  14  0.000106972
  15  3.38271e-05
  16  0.000209582
  17  0.000248483
  18  0.000192999
  19  1.09601e-05
  20  32.4052
  21  31.929
  22  79.0008
  23  2.00807e-06
  24  6.10129
  25  2.27182
  26  6.16909e-05
  27  0.322256
  28  0.196257
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.070e-04  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.102e-01  1.963e-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.562e+00  3.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.348 -11.075
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/142311/likelihoodResults_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.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) = 4258.4111711
delta logL = -0.000434042523921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4258.41073705
delta logL = 3.3360265661e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3320       1.0000          .0000       10.000    
     3 'Normalizat'    1.5619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81019       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4258.411     FROM MIGRAD    STATUS=FAILED        83 CALLS      232 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    45.738        .18142E-02** at limit **
   2  Index         2.2224        8.6183        .20000E-01    .16327E-05
   3  Normalizat    1.5619        .31261        .28785E-03   -.23618E-04
   4  Prefactor     .81019        .18995        .23180E-03   -.18245E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4258.411     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      362 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    45.738        .58554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2224        8.6183        .44474E-03   -.58898    
   3  Normalizat    1.5619        .31261        .27333E-04   -.76052    
   4  Prefactor     .81019        .18995        .31796E-04   -.99354    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4258.411     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      396 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.267        .36285E-03** at limit **
   2  Index         2.1176        8.6625        .40000E-01   -.90949E-08
   3  Normalizat    1.5619        .31290        .11514E-04    .26857E-04
   4  Prefactor     .81019        .19013        .92719E-05    .22806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11761
  Normalizat = 1.56194
  Prefactor  = 0.810194
 **********
 **   18 **HESSE 
 **********

 FCN=   4258.411     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.166        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1176        8.6793        .16000E-02   -.61441    
   3  Normalizat    1.5619        .31309        .23028E-05   -.76052    
   4  Prefactor     .81019        .19026        .18544E-05   -.99354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35325e-12
Minuit parameter uncertainties:
  1  1.84899e-05
  2  502.592
  3  0.313485
  4  0.190415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142311': 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) = 4258.41073696
delta logL = 8.77016645973e-08

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.849e-05  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.118e+00  5.026e+02  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:  8.102e-01  1.904e-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.562e+00  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.348 -11.075

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/142311/cmap_HighResolution_428803201_429062401_4FGL_J1153.3-1104_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-04 14:56:50.316779', job_id='142311', GAL2='0.81', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630792610.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='731' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 142311: <4FGL_J1153.3-1104_daily_bin731> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin731> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 14:41:21 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:41:22 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:41:22 2021
Terminated at Sat Sep  4 14:56:51 2021
Results reported at Sat Sep  4 14:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin731 178.348 -11.075 428803201 429062401 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 :                                   683.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

