/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 4 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.0+8056_daily_bin99
RA = 178.266, Dec = 80.9357
tmin = 264988801, tmax = 265248001
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='124939', job_status='RUN', time_executed='2021-09-04 13:52:45.563430', time_epoch_executed='1630788765.56' WHERE source_name='4FGL J1153.0+8056' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124939/ft1_4FGL_J1153.0+8056_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124939/ft1_4FGL_J1153.0+8056_daily_bin99.fits outfile=/scratch/kocevski/124939/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin99.fits ra=178.266 dec=80.9357 rad=12.0 tmin=264988801.0 tmax=265248001.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 1.46
user 1.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.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/124939/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin99.fits evtable="EVENTS" outfile="/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/124939/ltcube_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.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/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits
.....................!
real 12.52
user 12.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/124939/ltcube_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits outfile=/scratch/kocevski/124939/expmap_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.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/124939/ltcube_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits
.....................!
real 191.69
user 186.29
sys 4.93

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.0+8056 @ 178.266 80.9357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits outfile=/scratch/kocevski/124939/cmap_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.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.266 yref=80.9357 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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits outfile=/scratch/kocevski/124939/cmap_HighResolution_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.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.266 yref=80.9357 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.65
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124939/Model_4FGL_J1153.0+8056_daily_bin99.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/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits.....................!
real 104.13
user 101.53
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits', '/scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits', expMap='/scratch/kocevski/124939/expmap_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits', expCube='/scratch/kocevski/124939/ltcube_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124939/Model_4FGL_J1153.0+8056_daily_bin99.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.0+8056'

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  3.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/124939/ft1_filtered_4FGL_J1153.0+8056_daily_bin99.fits
Spacecraft file(s): /scratch/kocevski/124939/ft2_4FGL_J1153.0+8056_daily_bin99.fits
Exposure map: /scratch/kocevski/124939/expmap_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits
Exposure cube: /scratch/kocevski/124939/ltcube_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124939/Model_4FGL_J1153.0+8056_daily_bin99.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) = 8269.26852009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.479       1.0000         .10000E-03   10000.    
     2 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .56096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5928       1.0000         .10000E-03   10000.    
    11 'norm      '    .72526       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16919E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3096       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6359       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8269.148     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3207 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.480        17.816       -.14130E-06    .29504E-05
   2  norm          .10000E-03    16.400        .56827E-07** at limit **
   3  Prefactor     .10000E-03    88.593        .12227E-05** at limit **
   4  Prefactor     4.7879        9.4649       -.26678E-06    .84222E-05
   5  Prefactor     .10000E-03    5.6027       -.90488E-07** at limit **
   6  Prefactor     .10000E-03    21.701       -.28236E-06** at limit **
   7  Prefactor     .10000E-03    105.23       -.66547E-05** at limit **
   8  Prefactor     .10000E-03    19.870       -.30393E-06** at limit **
   9  norm          .10000E-03    3.5210        .60545E-06** at limit **
  10  Prefactor     2.5913        4.1586        .30315E-06    .28302E-04
  11  norm          .72527        .66904       -.41804E-07    .11678E-04
  12  norm          1.8135        1.6394        .11836E-07    .28809E-04
  13  Prefactor     .10000E-03    25.636       -.86142E-06** at limit **
  14  Prefactor     .10000E-03    3.4633       -.12702E-06** at limit **
  15  Prefactor     2.3201        3.1364       -.58067E-07    .33042E-05
  16  Prefactor     20.683        12.787       -.69355E-06    .16454E-03
  17  Prefactor     .10000E-03    16.251        .33079E-07** at limit **
  18  norm          3.3109        4.6278       -.64129E-06    .11059E-04
  19  norm          5.0778        3.2925       -.11943E-08    .70218E-04
  20  Prefactor     .10000E-03    38.669        .18055E-06** at limit **
  21  Prefactor     .10000E-03    5.6396       -.30365E-07** at limit **
  22  Prefactor     .10000E-03    6.4580       -.28322E-06** at limit **
  23  Prefactor     8.2362        18.956       -.14696E-06    .75448E-05
  24  Prefactor     .10000E-03    23.127       -.89465E-07** at limit **
  25  Prefactor     .10000E-03    13.788        .60673E-07** at limit **
  26  Prefactor     3.6435        133.11       -.25722E-05    .23662E-05
  27  Prefactor     .10000E-03    32.099        .68735E-07** at limit **
  28  Normalizat    1.1644        .16120        .15299E-05    .67245E-04
  29  Prefactor     .92129        .10369        .22328E-06    .20834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4802
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.59126
  norm       = 0.725267
  norm       = 1.81348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32012
  Prefactor  = 20.6828
  Prefactor  = 0.0001
  norm       = 3.31093
  norm       = 5.0778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64354
  Prefactor  = 0.0001
  Normalizat = 1.16437
  Prefactor  = 0.921294
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.148     FROM HESSE     STATUS=OK           555 CALLS     3762 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.480        17.841        .90751E-04   -1.4825    
   2  norm          .10000E-03    16.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    88.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7879        9.4711        .18386E-03   -1.5270    
   5  Prefactor     .10000E-03    5.6419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    109.81        .63296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.829        .24594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5913        4.1341        .19369E-03   -1.5386    
  11  norm          .72527        .63622        .58196E-03   -1.5538    
  12  norm          1.8135        1.6119        .10461E-03   -1.5439    
  13  Prefactor     .10000E-03    26.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5060        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3201        3.1198        .18189E-03   -1.5403    
  16  Prefactor     20.683        12.158        .88081E-04   -1.4798    
  17  Prefactor     .10000E-03    16.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3109        4.6318        .11126E-02   -1.5344    
  19  norm          5.0778        3.2852        .12297E-03   -1.5257    
  20  Prefactor     .10000E-03    39.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.2362        19.000        .13966E-03   -1.5134    
  24  Prefactor     .10000E-03    23.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6435        133.23        .21187E-03   -1.5326    
  27  Prefactor     .10000E-03    32.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1644        .17712        .26692E-03   -.87711    
  29  Prefactor     .92129        .11760        .20325E-03   -.95401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36297e-11
Minuit parameter uncertainties:
  1  17.8459
  2  2.93963e-05
  3  9.4065e-05
  4  9.47409
  5  6.64112e-06
  6  1.5722e-05
  7  0.000406832
  8  1.06424e-07
  9  0.000140084
  10  4.1346
  11  0.636224
  12  1.61198
  13  5.80961e-05
  14  1.36389e-05
  15  3.12
  16  12.1598
  17  1.86338e-05
  18  4.63225
  19  3.28535
  20  9.49876e-06
  21  1.11248e-05
  22  2.31634e-05
  23  19.0141
  24  3.24516e-06
  25  1.14381e-05
  26  44.1703
  27  8.72242e-05
  28  0.177208
  29  0.117628
Done.

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

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  2.068e+01  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.213e-01  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.164e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 178.266 80.936
Photon Index (Fixed Index): 2.87 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.09e-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) = 8269.07930446
delta logL = 0.0691660751218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8269.07696768
delta logL = 0.0715028489522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6137       1.0000          .0000       10.000    
     3 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+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=   8269.077     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.568        14.414        .82578E-04    .43587E-03
   2  Index         2.6161        .62989        .86879E-02    .10426E-03
   3  Normalizat    1.1761        .17161        .26579E-03    .36626E-03
   4  Prefactor     .91560        .11582        .20375E-03    .55608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5681
  Index      = 2.61613
  Normalizat = 1.17614
  Prefactor  = 0.915595
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.077     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.568        14.164        .16516E-04   -1.4737    
   2  Index         2.6161        .61850        .34752E-03   -.49698    
   3  Normalizat    1.1761        .17164        .53157E-04   -.87343    
   4  Prefactor     .91560        .11583        .40751E-04   -.95598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26438e-10
Minuit parameter uncertainties:
  1  14.1659
  2  0.620561
  3  0.171726
  4  0.115863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124939': 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) = 8269.07695034
delta logL = 0.0715201914281

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  2.357e+01  1.417e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.616e+00  6.206e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.156e-01  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.176e+00  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 178.266 80.936
Photon Index (Free Index): 2.62 +/- 0.62
Photon Flux (Free Index): 7.73e-08 +/- 5.12e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/124939/cmap_HighResolution_264988801_265248001_4FGL_J1153.0+8056_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='2.00e-05', photon_flux_error='5.06e-08', dlogl='7.15e-02', energy_flux='1.85e-05', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-09-04 14:08:56.415938', photon_index_error2='0.62', photon_index2='2.62', ts='4.41', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.16', time_epoch_completed='1630789736.42', return_code='0', job_id='124939', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.12e-08', ts2='4.56', photon_index='2.87' WHERE bin_id='99' AND source_name='4FGL J1153.0+8056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:08:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 124939: <4FGL_J1153.0+8056_daily_bin99> in cluster <slac> Done

Job <4FGL_J1153.0+8056_daily_bin99> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:52:22 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:52:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:52:27 2021
Terminated at Sat Sep  4 14:08:57 2021
Results reported at Sat Sep  4 14:08:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.0+8056_daily_bin99 178.266 80.9357 264988801 265248001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.0+8056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   964.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            995 sec.

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

