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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1207
RA = 178.348, Dec = -11.075
tmin = 552182401, tmax = 552441601
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='145566', job_status='RUN', time_executed='2021-09-04 14:55:39.284216', time_epoch_executed='1630792539.28' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145566/ft1_4FGL_J1153.3-1104_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145566/ft1_4FGL_J1153.3-1104_daily_bin1207.fits outfile=/scratch/kocevski/145566/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1207.fits ra=178.348 dec=-11.075 rad=12.0 tmin=552182401.0 tmax=552441601.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.71
user 3.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.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/145566/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/145566/ft1_filtered_4FGL_J1153.3-1104_daily_bin1207.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/145566/ft1_filtered_4FGL_J1153.3-1104_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/145566/ltcube_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.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/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145566/ft1_filtered_4FGL_J1153.3-1104_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/145566/ltcube_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.fits outfile=/scratch/kocevski/145566/expmap_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.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/145566/ltcube_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.fits
.....................!
real 190.80
user 185.56
sys 4.87

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/145566/ft1_filtered_4FGL_J1153.3-1104_daily_bin1207.fits scfile=/scratch/kocevski/145566/ft2_4FGL_J1153.3-1104_daily_bin1207.fits outfile=/scratch/kocevski/145566/cmap_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12805E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .63752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11885E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .18469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.010       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.683       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58205E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    197.03       1.0000         .10000E-03   10000.    
    22 'Prefactor '    177.04       1.0000         .10000E-03   10000.    
    23 'norm      '    .18210E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.368       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5355       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74779       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=   2495.032     FROM MIGRAD    STATUS=CONVERGED   1274 CALLS     4073 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.083        .16959E-02** at limit **
   2  Prefactor     .10000E-03    12.379        .17165E-02** at limit **
   3  Prefactor     15.882        23.325        .10052E-03    .12005E-03
   4  Prefactor     .10000E-03    150.92        .18142E-02** at limit **
   5  norm          .10000E-03    38.167        .18142E-02** at limit **
   6  norm          .63779        1.0193        .65222E-03   -.15702E-02
   7  Prefactor     .10000E-03    6.4195        .12347E-02** at limit **
   8  Prefactor     .10000E-03    21.979        .18142E-02** at limit **
   9  norm          .10000E-03    27.893        .18142E-02** at limit **
  10  Prefactor     .10000E-03    30.757        .18142E-02** at limit **
  11  Prefactor     .10000E-03    98.338        .18142E-02** at limit **
  12  norm          .15491        292.46        .34288E-02    .29299E-03
  13  Prefactor     27.032        18.947        .77083E-04    .14856E-03
  14  Prefactor     65.092        53.067        .24861E-03   -.61918E-04
  15  Prefactor     .10000E-03    88.591        .18142E-02** at limit **
  16  Prefactor     13.665        26.410        .10828E-03    .25033E-03
  17  norm          1.2939        15.154        .28635E-03    .43360E-03
  18  Prefactor     .10013E-03    974.92        .18985E-02** at limit **
  19  Prefactor     .23431        161.70        .13508        .21086E-04
  20  Prefactor     .10649E-03    330.56        .22438    ** at limit **
  21  Prefactor     196.81        233.42        .14391E-03   -.82285E-04
  22  Prefactor     177.09        132.81        .15166E-03    .80748E-04
  23  norm          .10000E-03    55.780        .18142E-02** at limit **
  24  Prefactor     .10000E-03    10.751        .15963E-02** at limit **
  25  Prefactor     19.367        6.0762        .66783E-04    .21049E-03
  26  Prefactor     .10000E-03    14.706        .18142E-02** at limit **
  27  Normalizat    1.5353        .51658        .32377E-03    .33255E-03
  28  Prefactor     .74784        .28458        .24906E-03    .43755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8816
  Prefactor  = 0.000100003
  norm       = 0.000100001
  norm       = 0.637792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.154911
  Prefactor  = 27.0319
  Prefactor  = 65.0918
  Prefactor  = 0.000100002
  Prefactor  = 13.6654
  norm       = 1.29388
  Prefactor  = 0.000100127
  Prefactor  = 0.234312
  Prefactor  = 0.00010649
  Prefactor  = 196.811
  Prefactor  = 177.095
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.3672
  Prefactor  = 0.0001
  Normalizat = 1.53533
  Prefactor  = 0.747843
 **********
 **   18 **HESSE 
 **********

 FCN=   2495.032     FROM HESSE     STATUS=OK           511 CALLS     4584 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.083        .33918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.379        .34329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.882        23.324        .40209E-05   -1.4911    
   4  Prefactor     .10000E-03    150.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    38.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .63779        1.0189        .26089E-04   -1.5548    
   7  Prefactor     .10000E-03    6.4197        .24695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    98.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15491        280.17        .13715E-03   -1.5629    
  13  Prefactor     27.032        18.222        .15417E-04   -1.4668    
  14  Prefactor     65.092        52.986        .99443E-05   -1.4093    
  15  Prefactor     .10000E-03    88.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.665        26.347        .21657E-04   -1.4968    
  17  norm          1.2939        15.051        .11454E-04   -1.5480    
  18  Prefactor     .10013E-03    975.13        .37970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23431        158.26        .13675       -1.5611    
  20  Prefactor     .10649E-03    335.93        .22162       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     196.81        233.38        .28782E-04   -1.2893    
  22  Prefactor     177.09        132.76        .30332E-04   -1.3039    
  23  norm          .10000E-03    55.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.752        .31926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.367        6.0761        .26713E-05   -1.4828    
  26  Prefactor     .10000E-03    14.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5353        .51678        .64755E-04   -.76790    
  28  Prefactor     .74784        .28470        .49812E-04   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04897e-08
Minuit parameter uncertainties:
  1  9.91451e-06
  2  1.87184e-05
  3  23.3376
  4  0.00134122
  5  0.000325848
  6  1.01892
  7  2.42884e-05
  8  0.000122358
  9  3.71869e-05
  10  0.00014355
  11  0.000570313
  12  13.234
  13  18.2253
  14  53.0247
  15  0.000812642
  16  26.369
  17  8.82828
  18  0.0226373
  19  12.209
  20  0.0939164
  21  234.488
  22  132.986
  23  0.000502147
  24  1.5927e-05
  25  6.07628
  26  1.00638e-05
  27  0.51858
  28  0.285261
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  6.509e+01  5.302e+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:  7.478e-01  2.853e-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.535e+00  5.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 1.34e-07
Energy Flux (Fixed Index): 5.89e-05 +/- 4.80e-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) = 2494.74421002
delta logL = 0.287952049316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2494.71871216
delta logL = 0.313449908367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.726       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6252       1.0000          .0000       10.000    
     3 'Normalizat'    1.6283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72838       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=   2494.719     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.549        73.875        .27882E-03   -.35474E-05
   2  Index         1.6234        .95509        .75998E-02   -.10254E-03
   3  Normalizat    1.6272        .50533        .31691E-03   -.90582E-05
   4  Prefactor     .72930        .28228        .25238E-03   -.14693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5489
  Index      = 1.6234
  Normalizat = 1.62718
  Prefactor  = 0.729303
 **********
 **   18 **HESSE 
 **********

 FCN=   2494.719     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.549        75.961        .11153E-04   -1.4271    
   2  Index         1.6234        .98150        .15200E-02   -.74140    
   3  Normalizat    1.6272        .50602        .12676E-04   -.74265    
   4  Prefactor     .72930        .28258        .50476E-04   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23407e-10
Minuit parameter uncertainties:
  1  76.1045
  2  0.993479
  3  0.507625
  4  0.28314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145566': 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) = 2494.71870406
delta logL = 0.313458008093

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  5.155e+01  7.610e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  1.623e+00  9.935e-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:  7.293e-01  2.831e-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.627e+00  5.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 1.62 +/- 0.99
Photon Flux (Free Index): 4.66e-08 +/- 1.07e-07
Energy Flux (Free Index): 9.76e-05 +/- 1.50e-04

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/145566/cmap_HighResolution_552182401_552441601_4FGL_J1153.3-1104_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='9.76e-05', photon_flux_error='1.34e-07', dlogl='3.13e-01', energy_flux='5.89e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-04 15:04:03.263848', photon_index_error2='0.99', photon_index2='1.62', ts='5.24', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.50e-04', EG='1.54', time_epoch_completed='1630793043.26', return_code='0', job_id='145566', GAL2='0.73', EG2='1.63', return_code2='0', energy_flux_error='4.80e-05', photon_flux_error2='1.07e-07', ts2='5.86', photon_index='2.34' WHERE bin_id='1207' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 145566: <4FGL_J1153.3-1104_daily_bin1207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1207 178.348 -11.075 552182401 552441601 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 :                                   502.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             222.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

