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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1223
RA = 178.348, Dec = -11.075
tmin = 556329601, tmax = 556588801
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='145589', job_status='RUN', time_executed='2021-09-04 14:53:31.580546', time_epoch_executed='1630792411.58' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145589/ft1_4FGL_J1153.3-1104_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145589/ft1_4FGL_J1153.3-1104_daily_bin1223.fits outfile=/scratch/kocevski/145589/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1223.fits ra=178.348 dec=-11.075 rad=12.0 tmin=556329601.0 tmax=556588801.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.70
user 3.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.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/145589/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/145589/ft1_filtered_4FGL_J1153.3-1104_daily_bin1223.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/145589/ft1_filtered_4FGL_J1153.3-1104_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/145589/ltcube_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.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/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits
.....................!
real 11.64
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145589/ft1_filtered_4FGL_J1153.3-1104_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/145589/ltcube_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.fits outfile=/scratch/kocevski/145589/expmap_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.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/145589/ltcube_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.fits
.....................!
real 191.12
user 184.93
sys 5.12

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/145589/ft1_filtered_4FGL_J1153.3-1104_daily_bin1223.fits scfile=/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits outfile=/scratch/kocevski/145589/cmap_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145589/ft1_filtered_4FGL_J1153.3-1104_daily_bin1223.fits scfile=/scratch/kocevski/145589/ft2_4FGL_J1153.3-1104_daily_bin1223.fits outfile=/scratch/kocevski/145589/cmap_HighResolution_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6772       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7139       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22559E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3172       1.0000         .10000E-03   10000.    
    17 'norm      '    7.9425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31824E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.276       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6388       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5424       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2231       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91849       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=   4730.879     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3543 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.616        33.611       -.41779E-06   -.12723E-03
   2  Prefactor     .10000E-03    14.684        .20178E-05** at limit **
   3  Prefactor     .10000E-03    10.255        .27804E-05** at limit **
   4  Prefactor     .10000E-03    43.661        .35810E-05** at limit **
   5  norm          2.6742        10.453        .31688E-06   -.11746E-03
   6  norm          .10000E-03    .91888        .15677E-07** at limit **
   7  Prefactor     .10000E-03    2.3788       -.62820E-08** at limit **
   8  Prefactor     7.7141        10.408        .11892E-05   -.68676E-03
   9  norm          .10000E-03    12.044       -.11997E-05** at limit **
  10  Prefactor     33.001        33.455        .18938E-06    .79761E-05
  11  Prefactor     .10001E-03    29.051       -.29768E-06** at limit **
  12  norm          .10000E-03    10.233       -.23649E-05** at limit **
  13  Prefactor     10.347        7.6667        .40165E-06   -.50748E-03
  14  Prefactor     48.788        29.931       -.16685E-06    .27033E-04
  15  Prefactor     .10000E-03    22.918        .32886E-05** at limit **
  16  Prefactor     4.3169        11.188        .30073E-05   -.71752E-03
  17  norm          7.9422        6.0145       -.38143E-06   -.89791E-04
  18  Prefactor     .10002E-03    427.55       -.13727E-04** at limit **
  19  Prefactor     70.301        37.174        .44297E-06    .14202E-03
  20  Prefactor     .10000E-03    33.811       -.53157E-05** at limit **
  21  Prefactor     .10000E-03    18.782       -.49870E-05** at limit **
  22  Prefactor     .10000E-03    22.655        .24905E-05** at limit **
  23  norm          .10000E-03    2.2756        .75238E-09** at limit **
  24  Prefactor     6.6388        9.3498       -.10414E-07   -.42407E-04
  25  Prefactor     3.5425        2.7022        .63729E-08   -.20165E-04
  26  Prefactor     13.363        19.496        .69670E-06    .50655E-04
  27  Normalizat    1.2233        .30940       -.58953E-06   -.10353E-04
  28  Prefactor     .91839        .16963       -.24892E-06   -.70394E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6163
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 2.6742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71415
  norm       = 0.0001
  Prefactor  = 33.0011
  Prefactor  = 0.000100006
  norm       = 0.000100001
  Prefactor  = 10.3466
  Prefactor  = 48.7881
  Prefactor  = 0.000100002
  Prefactor  = 4.31691
  norm       = 7.94218
  Prefactor  = 0.000100021
  Prefactor  = 70.3012
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.63877
  Prefactor  = 3.54255
  Prefactor  = 13.363
  Normalizat = 1.22326
  Prefactor  = 0.918388
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.879     FROM HESSE     STATUS=OK           519 CALLS     4062 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.616        33.873        .58735E-04   -1.4341    
   2  Prefactor     .10000E-03    14.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6742        10.429        .24905E-03   -1.5381    
   6  norm          .10000E-03    1.5748        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3818        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7141        11.056        .72191E-03   -1.5152    
   9  norm          .10000E-03    12.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.001        33.449        .69746E-04   -1.4558    
  11  Prefactor     .10001E-03    268.47        .71318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.347        7.8229        .62287E-03   -1.5065    
  14  Prefactor     48.788        29.940        .57412E-04   -1.4310    
  15  Prefactor     .10000E-03    23.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3169        13.265        .96940E-03   -1.5292    
  17  norm          7.9422        6.1024        .12793E-03   -1.5144    
  18  Prefactor     .10002E-03    444.68        .42729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     70.301        37.304        .47885E-04   -1.4029    
  20  Prefactor     .10000E-03    34.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2757        .10134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.6388        9.3647        .15574E-03   -1.5193    
  25  Prefactor     3.5425        2.7086        .89523E-04   -1.5332    
  26  Prefactor     13.363        19.466        .10957E-03   -1.4977    
  27  Normalizat    1.2233        .36629        .33199E-03   -.85887    
  28  Prefactor     .91839        .20166        .22403E-03   -.95501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91012e-09
Minuit parameter uncertainties:
  1  33.887
  2  0.000203434
  3  0.000205486
  4  0.000596098
  5  10.4366
  6  7.66573e-08
  7  5.55222e-07
  8  11.0584
  9  0.000102842
  10  33.468
  11  0.0025558
  12  0.000176988
  13  7.82368
  14  29.9493
  15  0.00038793
  16  13.2737
  17  6.10289
  18  0.00612305
  19  37.316
  20  0.000767553
  21  0.000539408
  22  0.000292101
  23  1.09847e-07
  24  9.36681
  25  2.70871
  26  19.4754
  27  0.367066
  28  0.201827
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  4.879e+01  2.995e+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:  9.184e-01  2.018e-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.223e+00  3.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.98
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 7.56e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.71e-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) = 4730.8748452
delta logL = 0.00442118379124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4730.87056391
delta logL = 0.00870247828971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.495       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4162       1.0000          .0000       10.000    
     3 'Normalizat'    1.2134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92218       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=   4730.871     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      257 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.486        39.801        .59442E-04    .42949E-03
   2  Index         2.4169        .65505        .50997E-02    .17394E-03
   3  Normalizat    1.2126        .34564        .33319E-03   -.52745E-03
   4  Prefactor     .92261        .20178        .22357E-03   -.10607E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4858
  Index      = 2.41685
  Normalizat = 1.21259
  Prefactor  = 0.922613
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.871     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.486        37.651        .11888E-04   -1.4358    
   2  Index         2.4169        .61886        .20399E-03   -.54291    
   3  Normalizat    1.2126        .34476        .66637E-04   -.86215    
   4  Prefactor     .92261        .20152        .44715E-04   -.95355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92153e-09
Minuit parameter uncertainties:
  1  37.6705
  2  0.621032
  3  0.345406
  4  0.201678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145589': 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) = 4730.87056101
delta logL = 0.00870538235085

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  4.549e+01  3.767e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.417e+00  6.210e-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.226e-01  2.017e-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.213e+00  3.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 2.42 +/- 0.62
Photon Flux (Free Index): 1.33e-07 +/- 1.04e-07
Energy Flux (Free Index): 4.25e-05 +/- 2.75e-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/145589/cmap_HighResolution_556329601_556588801_4FGL_J1153.3-1104_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.25e-05', photon_flux_error='7.56e-08', dlogl='8.71e-03', energy_flux='4.42e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-04 15:04:10.523291', photon_index_error2='0.62', photon_index2='2.42', ts='5.98', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='1.22', time_epoch_completed='1630793050.52', return_code='0', job_id='145589', GAL2='0.92', EG2='1.21', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='1.04e-07', ts2='6.01', photon_index='2.34' WHERE bin_id='1223' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:04:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 145589: <4FGL_J1153.3-1104_daily_bin1223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1223 178.348 -11.075 556329601 556588801 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 :                                   632.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

