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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1085
RA = 178.348, Dec = -11.075
tmin = 520560001, tmax = 520819201
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='145387', job_status='RUN', time_executed='2021-09-04 14:53:44.123158', time_epoch_executed='1630792424.12' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145387/ft1_4FGL_J1153.3-1104_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145387/ft1_4FGL_J1153.3-1104_daily_bin1085.fits outfile=/scratch/kocevski/145387/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1085.fits ra=178.348 dec=-11.075 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.29
user 4.96
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/145387/ltcube_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.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/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits
.....................!
real 12.56
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/145387/ltcube_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.fits outfile=/scratch/kocevski/145387/expmap_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.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/145387/ltcube_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.fits
.....................!
real 190.49
user 184.93
sys 4.98

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/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits scfile=/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits outfile=/scratch/kocevski/145387/cmap_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits scfile=/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits outfile=/scratch/kocevski/145387/cmap_HighResolution_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/145387/ft2_4FGL_J1153.3-1104_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/145387/Model_4FGL_J1153.3-1104_daily_bin1085.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/145387/ft1_filtered_4FGL_J1153.3-1104_daily_bin1085.fits.....................!
real 46.42
user 45.09
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7126       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60752       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.369       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11909E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18464E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .45561       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2343       1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.905       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.6300       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82051       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=   4582.507     FROM MIGRAD    STATUS=CONVERGED   1216 CALLS     4040 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9902        19.635        .16416E-03    .23962E-04
   2  Prefactor     .10000E-03    165.28        .51482E-02** at limit **
   3  Prefactor     7.6637        7.3235        .72436E-03   -.57129E-05
   4  Prefactor     .10000E-03    28.140        .18142E-02** at limit **
   5  norm          .10000E-03    21.222        .18142E-02** at limit **
   6  norm          .10000E-03    .87034        .12079E-03** at limit **
   7  Prefactor     7.7148        7.8219        .72197E-03   -.19117E-04
   8  Prefactor     .59448        52.108        .42904E-02    .17654E-03
   9  norm          .10000E-03    12.191        .18142E-02** at limit **
  10  Prefactor     .10000E-03    32.665        .18142E-02** at limit **
  11  Prefactor     29.357        49.037        .73930E-04    .95342E-05
  12  norm          2.9437        5.8643        .22412E-03   -.17145E-04
  13  Prefactor     .10000E-03    9.4172        .36285E-03** at limit **
  14  Prefactor     34.375        27.671        .68355E-04   -.14969E-05
  15  Prefactor     .10000E-03    8.3437        .18142E-02** at limit **
  16  Prefactor     .10000E-03    6.0307        .16231E-02** at limit **
  17  norm          .10000E-03    2.4208        .10214E-02** at limit **
  18  Prefactor     .10000E-03    110.55        .18142E-02** at limit **
  19  Prefactor     4.4631        14.553        .19056E-03   -.93069E-05
  20  Prefactor     57.503        61.947        .52894E-04   -.38043E-04
  21  Prefactor     10.131        14.100        .12589E-03   -.45155E-06
  22  Prefactor     .10000E-03    28.662        .18142E-02** at limit **
  23  norm          .45662        4.8193        .28158E-03   -.81960E-05
  24  Prefactor     .10000E-03    2.8390        .11112E-02** at limit **
  25  Prefactor     7.2345        3.2383        .78811E-04   -.93764E-05
  26  Prefactor     22.904        16.248        .83695E-04    .14942E-05
  27  Normalizat    1.6301        .35955        .29176E-03   -.50313E-04
  28  Prefactor     .82039        .21255        .24600E-03    .40299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.99022
  Prefactor  = 0.0001
  Prefactor  = 7.66374
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.71481
  Prefactor  = 0.594484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3574
  norm       = 2.94375
  Prefactor  = 0.0001
  Prefactor  = 34.375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46313
  Prefactor  = 57.5035
  Prefactor  = 10.1312
  Prefactor  = 0.0001
  norm       = 0.456619
  Prefactor  = 0.0001
  Prefactor  = 7.23452
  Prefactor  = 22.9044
  Normalizat = 1.63013
  Prefactor  = 0.820389
 **********
 **   18 **HESSE 
 **********

 FCN=   4582.507     FROM HESSE     STATUS=OK           497 CALLS     4537 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9902        19.450        .65662E-05   -1.5218    
   2  Prefactor     .10000E-03    168.39        .20593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6637        7.3179        .28975E-04   -1.5154    
   4  Prefactor     .10000E-03    28.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    21.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .87034        .24157E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7148        7.8150        .28879E-04   -1.5152    
   8  Prefactor     .59448        51.718        .17162E-03   -1.5554    
   9  norm          .10000E-03    12.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.357        48.870        .29572E-05   -1.4624    
  12  norm          2.9437        5.8637        .89650E-05   -1.5365    
  13  Prefactor     .10000E-03    9.4177        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.375        27.668        .27342E-05   -1.4535    
  15  Prefactor     .10000E-03    8.3437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0308        .32461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4212        .20427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    110.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4631        14.549        .76224E-05   -1.5285    
  20  Prefactor     57.503        61.935        .10579E-04   -1.4190    
  21  Prefactor     10.131        14.099        .50354E-05   -1.5071    
  22  Prefactor     .10000E-03    28.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .45662        4.8170        .11263E-04   -1.5573    
  24  Prefactor     .10000E-03    2.8391        .22223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.2345        3.2383        .31524E-05   -1.5170    
  26  Prefactor     22.904        16.245        .33478E-05   -1.4750    
  27  Normalizat    1.6301        .35902        .58351E-04   -.74185    
  28  Prefactor     .82039        .21274        .98400E-05   -.98981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32048e-10
Minuit parameter uncertainties:
  1  19.471
  2  0.000164543
  3  7.31872
  4  5.68771e-06
  5  1.69279e-05
  6  5.2305e-07
  7  7.81599
  8  11.0987
  9  2.77886e-06
  10  1.92503e-05
  11  48.9367
  12  5.86484
  13  4.43839e-06
  14  27.6785
  15  3.01444e-07
  16  4.95967e-07
  17  8.54102e-07
  18  0.00027867
  19  14.5602
  20  62.0046
  21  14.1032
  22  6.11245e-06
  23  2.96616
  24  5.49491e-07
  25  3.23835
  26  16.2485
  27  0.359594
  28  0.212957
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  3.437e+01  2.768e+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.204e-01  2.130e-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.630e+00  3.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 6.99e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 2.51e-05

TS (Fixed Index): 3.02
Ra Dec: 178.348 -11.075
Photon Flux Upper Limit: 2.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145387/likelihoodResults_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.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): 0
logL (Free Index) = 4582.44082514
delta logL = 0.0657440652849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4582.43693179
delta logL = 0.069637411917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.521       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5675       1.0000          .0000       10.000    
     3 'Normalizat'    1.6096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82804       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=   4582.437     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      278 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.512        31.664        .76366E-04    .56559E-03
   2  Index         2.5671        .67512        .51470E-02    .24765E-03
   3  Normalizat    1.6098        .33922        .29319E-03   -.86639E-03
   4  Prefactor     .82809        .20976        .24494E-03   -.12173E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5115
  Index      = 2.56711
  Normalizat = 1.60982
  Prefactor  = 0.828086
 **********
 **   18 **HESSE 
 **********

 FCN=   4582.437     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.512        29.758        .15273E-04   -1.4658    
   2  Index         2.5671        .63392        .20588E-03   -.50817    
   3  Normalizat    1.6098        .33909        .58638E-04   -.74737    
   4  Prefactor     .82809        .20972        .48989E-04   -.98701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31452e-09
Minuit parameter uncertainties:
  1  29.7739
  2  0.636171
  3  0.339577
  4  0.20992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145387': 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) = 4582.43693006
delta logL = 0.0696391494666

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  2.751e+01  2.977e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.567e+00  6.362e-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:  8.281e-01  2.099e-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.610e+00  3.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 2.57 +/- 0.64
Photon Flux (Free Index): 1.05e-07 +/- 9.17e-08
Energy Flux (Free Index): 2.85e-05 +/- 2.27e-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/145387/cmap_HighResolution_520560001_520819201_4FGL_J1153.3-1104_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='2.85e-05', photon_flux_error='6.99e-08', dlogl='6.96e-02', energy_flux='3.11e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-04 15:06:20.108411', photon_index_error2='0.64', photon_index2='2.57', ts='3.02', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='2.39e-07', energy_flux_error2='2.27e-05', EG='1.63', time_epoch_completed='1630793180.11', return_code='0', job_id='145387', GAL2='0.83', EG2='1.61', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='9.17e-08', ts2='3.15', photon_index='2.34' WHERE bin_id='1085' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:06:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 145387: <4FGL_J1153.3-1104_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin1085> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 14:51:20 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:51:21 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:51:21 2021
Terminated at Sat Sep  4 15:06:20 2021
Results reported at Sat Sep  4 15:06:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1085 178.348 -11.075 520560001 520819201 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

