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


Performing analysis on: 4FGL_J1153.0+8056_daily_bin1224
RA = 178.266, Dec = 80.9357
tmin = 556588801, tmax = 556848001
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='134455', job_status='RUN', time_executed='2021-09-04 14:20:24.763098', time_epoch_executed='1630790424.76' WHERE source_name='4FGL J1153.0+8056' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/134455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/134455/ft1_4FGL_J1153.0+8056_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/134455/ft1_4FGL_J1153.0+8056_daily_bin1224.fits outfile=/scratch/kocevski/134455/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin1224.fits ra=178.266 dec=80.9357 rad=12.0 tmin=556588801.0 tmax=556848001.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.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/134455/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.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.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/134455/ltcube_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits outfile=/scratch/kocevski/134455/expmap_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.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/134455/ltcube_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits
.....................!
real 191.12
user 186.45
sys 4.35

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/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.fits scfile=/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits outfile=/scratch/kocevski/134455/cmap_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.fits scfile=/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits outfile=/scratch/kocevski/134455/cmap_HighResolution_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.fits', '/scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits', expMap='/scratch/kocevski/134455/expmap_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits', expCube='/scratch/kocevski/134455/ltcube_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/134455/Model_4FGL_J1153.0+8056_daily_bin1224.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/134455/ft1_filtered_4FGL_J1153.0+8056_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/134455/ft2_4FGL_J1153.0+8056_daily_bin1224.fits
Exposure map: /scratch/kocevski/134455/expmap_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits
Exposure cube: /scratch/kocevski/134455/ltcube_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/134455/Model_4FGL_J1153.0+8056_daily_bin1224.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) = 3461.57484093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    117.50       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10707E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9879       1.0000         .10000E-03   10000.    
    11 'norm      '    .10839       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11189E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.467       1.0000         .10000E-03   10000.    
    18 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    88.566       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87631       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1423       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=   3461.569     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3687 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.285        .16515E-05** at limit **
   2  norm          .10000E-03    37.512        .67343E-06** at limit **
   3  Prefactor     117.39        87.541       -.58583E-05   -.33185E-03
   4  Prefactor     .10000E-03    4.5954        .55882E-08** at limit **
   5  Prefactor     .10000E-03    24.562       -.22705E-05** at limit **
   6  Prefactor     .10000E-03    6.9549        .37849E-07** at limit **
   7  Prefactor     .10000E-03    32.313        .36865E-06** at limit **
   8  Prefactor     .10000E-03    59.064        .25210E-05** at limit **
   9  norm          .10000E-03    9.9392        .67163E-06** at limit **
  10  Prefactor     3.9813        7.2554        .49975E-05   -.83774E-03
  11  norm          .11037        1.2503       -.13244E-05   -.12264E-03
  12  norm          .10000E-03    1.6057       -.68121E-07** at limit **
  13  Prefactor     13.086        16.263        .16180E-06    .85480E-05
  14  Prefactor     .10000E-03    3.9041       -.86663E-07** at limit **
  15  Prefactor     .10000E-03    14.919       -.21627E-05** at limit **
  16  Prefactor     .10000E-03    10.754       -.15182E-05** at limit **
  17  Prefactor     18.211        86.392       -.40017E-06    .32298E-05
  18  norm          .10000E-03    8.2708       -.30565E-07** at limit **
  19  norm          .10000E-03    1.6645        .14593E-07** at limit **
  20  Prefactor     .10000E-03    17.656        .21819E-05** at limit **
  21  Prefactor     .10000E-03    6.0517        .11223E-07** at limit **
  22  Prefactor     .10000E-03    11.993        .17612E-05** at limit **
  23  Prefactor     .10000E-03    6.7615        .54661E-09** at limit **
  24  Prefactor     .10000E-03    56.868       -.18960E-05** at limit **
  25  Prefactor     88.482        71.048        .16930E-05    .13571E-03
  26  Prefactor     .10001E-03    43.017       -.40427E-05** at limit **
  27  Prefactor     .10000E-03    37.882        .97175E-06** at limit **
  28  Normalizat    .87640        .25424        .88305E-06    .41831E-04
  29  Prefactor     1.1423        .16640       -.44438E-06    .10754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 117.388
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 3.98133
  norm       = 0.110371
  norm       = 0.0001
  Prefactor  = 13.0856
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 18.2114
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 88.482
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 0.876396
  Prefactor  = 1.14233
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.569     FROM HESSE     STATUS=OK           535 CALLS     4222 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    37.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     117.39        91.407        .18560E-03   -1.3537    
   4  Prefactor     .10000E-03    4.6029        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9573        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.9760        .35719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9813        7.8680        .93313E-03   -1.5309    
  11  norm          .11037        2.1761        .10607E-02   -1.5642    
  12  norm          .10000E-03    1.6073        .72806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.086        16.070        .11076E-03   -1.4984    
  14  Prefactor     .10000E-03    3.9072        .11354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.211        86.477        .93201E-04   -1.4854    
  18  norm          .10000E-03    8.3241        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6712        .74124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0566        .14136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.7629        .14943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    57.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     88.482        71.435        .42694E-04   -1.3824    
  26  Prefactor     .10001E-03    43.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    37.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87640        .28434        .30664E-03   -.97295    
  29  Prefactor     1.1423        .18601        .18600E-03   -.88125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72105e-08
Minuit parameter uncertainties:
  1  0.00036612
  2  0.000425342
  3  91.5171
  4  6.73976e-07
  5  0.000440592
  6  2.0505e-06
  7  8.16193e-05
  8  0.000750851
  9  5.55432e-05
  10  7.87006
  11  0.979764
  12  3.75889e-06
  13  16.0752
  14  7.57289e-06
  15  0.000306783
  16  0.000207663
  17  79.5569
  18  1.32411e-05
  19  5.02409e-07
  20  0.000352978
  21  2.78663e-06
  22  0.00018766
  23  6.23258e-06
  24  0.000585368
  25  71.5049
  26  0.00110547
  27  0.000219913
  28  0.284822
  29  0.186118
Done.

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

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.077e-04  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:  1.142e+00  1.861e-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:  8.764e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.266 80.936
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/134455/likelihoodResults_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.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) = 3461.56958963
delta logL = -0.000436802423792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3461.56915325
delta logL = -4.21621280111e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8727       1.0000          .0000       10.000    
     3 'Normalizat'    .87622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1425       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.

 FCN=   3461.569     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.668        .90712E-02** at limit **
   2  Index         2.8758        6.4350        .50000       -.27103E-05
   3  Normalizat    .87640        .24060        .69308E-01    .10930E-04
   4  Prefactor     1.1423        .16536        .36159E-01    .31416E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.87579
  Normalizat = 0.876397
  Prefactor  = 1.14233
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.569     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8758        6.4238        .50000       -.43879    
   3  Normalizat    .87640        .26716        .30664E-03   -.97295    
   4  Prefactor     1.1423        .18399        .18600E-03   -.88125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56023e-12
Minuit parameter uncertainties:
  1  2.35169e-05
  2  4.64223
  3  0.267565
  4  0.184091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/134455': 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) = 3461.56915282
delta logL = 3.77985998057e-09

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.352e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.876e+00  4.642e+00  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:  1.142e+00  1.841e-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:  8.764e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.266 80.936

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/134455/cmap_HighResolution_556588801_556848001_4FGL_J1153.0+8056_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-04 14:31:47.298052', job_id='134455', GAL2='1.14', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630791107.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.78e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='1224' AND source_name='4FGL J1153.0+8056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 134455: <4FGL_J1153.0+8056_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1153.0+8056_daily_bin1224> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 14:16:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:16:37 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:16:37 2021
Terminated at Sat Sep  4 14:31:48 2021
Results reported at Sat Sep  4 14:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.0+8056_daily_bin1224 178.266 80.9357 556588801 556848001 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

