/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 9 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin428
RA = 178.35, Dec = 49.5169
tmin = 350265601, tmax = 350524801
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='150939', job_status='RUN', time_executed='2021-09-04 15:06:41.377613', time_epoch_executed='1630793201.38' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150939/ft1_4FGL_J1153.4+4931_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150939/ft1_4FGL_J1153.4+4931_daily_bin428.fits outfile=/scratch/kocevski/150939/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin428.fits ra=178.35 dec=49.5169 rad=12.0 tmin=350265601.0 tmax=350524801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.49
user 3.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.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/150939/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin428.fits evtable="EVENTS" outfile="/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.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 1.61
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/150939/ltcube_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.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/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits
.....................!
real 13.04
user 12.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/150939/ltcube_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits outfile=/scratch/kocevski/150939/expmap_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.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/150939/ltcube_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits
.....................!
real 190.54
user 185.48
sys 4.38

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

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits outfile=/scratch/kocevski/150939/cmap_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.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.35 yref=49.5169 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits outfile=/scratch/kocevski/150939/cmap_HighResolution_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.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.35 yref=49.5169 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150939/Model_4FGL_J1153.4+4931_daily_bin428.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/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits.....................!
real 56.28
user 54.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits', '/scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits', expMap='/scratch/kocevski/150939/expmap_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits', expCube='/scratch/kocevski/150939/ltcube_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/150939/Model_4FGL_J1153.4+4931_daily_bin428.xml', optimizer='MINUIT')

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

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/150939/ft1_filtered_4FGL_J1153.4+4931_daily_bin428.fits
Spacecraft file(s): /scratch/kocevski/150939/ft2_4FGL_J1153.4+4931_daily_bin428.fits
Exposure map: /scratch/kocevski/150939/expmap_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits
Exposure cube: /scratch/kocevski/150939/ltcube_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/150939/Model_4FGL_J1153.4+4931_daily_bin428.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) = 6476.78783613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.439       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
    13 'norm      '    12.585       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0916       1.0000         .10000E-03   10000.    
    15 'norm      '    18.804       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12164E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.072       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8038       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5447       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.3681       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99050       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6476.784     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3685 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.418        63.900       -.19769E-05   -.10162E-03
   2  Prefactor     41.683        50.166        .34904E-07    .74463E-06
   3  Prefactor     .10000E-03    48.659        .17355E-06** at limit **
   4  norm          1.6439        1.3842       -.15096E-07   -.44005E-04
   5  Prefactor     44.197        38.587        .85436E-07   -.62582E-05
   6  Prefactor     12.875        13.899       -.19900E-06   -.42875E-04
   7  Prefactor     .10000E-03    20.109        .49673E-07** at limit **
   8  norm          .10000E-03    17.246        .50508E-06** at limit **
   9  Prefactor     1.1193        5.3634        .24890E-05   -.84265E-04
  10  Prefactor     .10000E-03    90.565       -.13730E-05** at limit **
  11  norm          2.9704        3.6711        .23923E-06   -.18170E-04
  12  Prefactor     11.357        37.342        .60849E-06    .17807E-04
  13  norm          12.579        13.251       -.78663E-07   -.46983E-04
  14  norm          4.0919        1.3593       -.94523E-08    .88240E-05
  15  norm          18.805        12.064        .35073E-07    .21043E-05
  16  Prefactor     1.2359        1.4953        .36070E-07    .44041E-05
  17  Prefactor     .10000E-03    20.982       -.59003E-06** at limit **
  18  norm          .10064E-03    3.2979        .46178E-06** at limit **
  19  Prefactor     .10000E-03    8.3729        .96885E-07** at limit **
  20  Prefactor     13.057        10.196        .53551E-07   -.24827E-03
  21  norm          2.8037        2.0894        .16912E-07   -.15553E-03
  22  norm          7.5449        5.0423        .40355E-06    .40620E-03
  23  Prefactor     .10000E-03    5.4421        .14084E-06** at limit **
  24  Prefactor     .10000E-03    3.2620       -.20004E-07** at limit **
  25  norm          1.5647        2.1603        .70206E-07   -.46763E-05
  26  Prefactor     .10000E-03    13.909       -.10845E-06** at limit **
  27  norm          5.3684        2.6460        .27079E-06   -.11591E-03
  28  Normalizat    .99044        .16092       -.22788E-06   -.15012E-03
  29  Prefactor     .99426        .19966       -.43734E-06   -.93093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.4184
  Prefactor  = 41.683
  Prefactor  = 0.0001
  norm       = 1.64393
  Prefactor  = 44.1975
  Prefactor  = 12.8751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.11933
  Prefactor  = 0.000100001
  norm       = 2.97037
  Prefactor  = 11.3574
  norm       = 12.5794
  norm       = 4.09191
  norm       = 18.8047
  Prefactor  = 1.23593
  Prefactor  = 0.0001
  norm       = 0.000100639
  Prefactor  = 0.0001
  Prefactor  = 13.0566
  norm       = 2.80368
  norm       = 7.5449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56472
  Prefactor  = 0.0001
  norm       = 5.36844
  Normalizat = 0.990441
  Prefactor  = 0.994261
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.784     FROM HESSE     STATUS=OK           557 CALLS     4242 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.418        65.778        .55386E-04   -1.4259    
   2  Prefactor     41.683        50.163        .62090E-04   -1.4416    
   3  Prefactor     .10000E-03    48.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6439        1.3909        .84186E-04   -1.5452    
   5  Prefactor     44.197        38.609        .60306E-04   -1.4377    
   6  Prefactor     12.875        13.891        .11162E-03   -1.4990    
   7  Prefactor     .10000E-03    20.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1193        5.5572        .35756E-03   -1.5496    
  10  Prefactor     .10000E-03    94.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9704        3.6538        .16042E-03   -1.5363    
  12  Prefactor     11.357        37.297        .11890E-03   -1.5034    
  13  norm          12.579        13.227        .11291E-03   -1.4998    
  14  norm          4.0919        1.3591        .48934E-04   -1.5303    
  15  norm          18.805        12.073        .92364E-04   -1.4840    
  16  Prefactor     1.2359        1.4796        .10514E-03   -1.5486    
  17  Prefactor     .10000E-03    21.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10064E-03    77.470        .25077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.057        9.4252        .11079E-03   -1.4985    
  21  norm          2.8037        2.0941        .95307E-04   -1.5373    
  22  norm          7.5449        5.1388        .14600E-03   -1.5159    
  23  Prefactor     .10000E-03    5.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2834        .14188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5647        2.1389        .13527E-03   -1.5458    
  26  Prefactor     .10000E-03    13.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.3684        2.6547        .44627E-03   -1.5245    
  28  Normalizat    .99044        .18627        .22825E-03   -.93351    
  29  Prefactor     .99426        .23141        .29045E-03   -.92921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83818e-09
Minuit parameter uncertainties:
  1  65.8697
  2  50.2141
  3  4.72875e-05
  4  1.39093
  5  38.6308
  6  13.8949
  7  1.12909e-05
  8  7.99471e-05
  9  4.98861
  10  0.000576471
  11  3.65409
  12  37.3734
  13  13.23
  14  1.35906
  15  12.0751
  16  1.47966
  17  0.000105141
  18  0.0140862
  19  5.05235e-06
  20  9.4263
  21  2.09417
  22  5.13909
  23  2.05342e-07
  24  3.29445e-06
  25  2.13896
  26  2.46538e-05
  27  2.65481
  28  0.18639
  29  0.231639
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.236e+00  1.480e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  9.943e-01  2.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.904e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 3.91e-06 +/- 4.67e-06

TS (Fixed Index): 1.65
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 5.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150939/likelihoodResults_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.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) = 6476.32063882
delta logL = 0.463403750851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6476.2922954
delta logL = 0.491747177514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6499       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6694       1.0000          .0000       10.000    
     3 'Normalizat'    .99709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6476.292     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6503        2.3652        .82177E-02   -.15122E-03
   2  Index         1.6697        .66176        .28125       -.30508E-04
   3  Normalizat    .99678        .15472        .46130E-01    .10013E-04
   4  Prefactor     .98867        .19808        .46125E-01    .14005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65026
  Index      = 1.66966
  Normalizat = 0.996778
  Prefactor  = 0.988667
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.292     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6503        1.8730        .11034E-03   -1.5451    
   2  Index         1.6697        .65682        .10687E-01   -.72893    
   3  Normalizat    .99678        .17896        .22757E-03   -.93138    
   4  Prefactor     .98867        .22921        .29107E-03   -.93108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94777e-13
Minuit parameter uncertainties:
  1  1.87309
  2  0.660263
  3  0.179072
  4  0.229439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150939': 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) = 6476.29228929
delta logL = 0.491753286696

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.650e+00  1.873e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.670e+00  6.603e-01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  9.887e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.968e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 178.350 49.517
Photon Index (Free Index): 1.67 +/- 0.66
Photon Flux (Free Index): 7.40e-09 +/- 9.63e-09
Energy Flux (Free Index): 1.33e-05 +/- 2.41e-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/150939/cmap_HighResolution_350265601_350524801_4FGL_J1153.4+4931_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.33e-05', photon_flux_error='1.45e-08', dlogl='4.92e-01', energy_flux='3.91e-06', photon_flux2='7.40e-09', job_status='DONE', time_completed='2021-09-04 15:22:46.727805', photon_index_error2='0.66', photon_index2='1.67', ts='1.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='5.82e-08', energy_flux_error2='2.41e-05', EG='0.99', time_epoch_completed='1630794166.73', return_code='0', job_id='150939', GAL2='0.99', EG2='1.00', return_code2='0', energy_flux_error='4.67e-06', photon_flux_error2='9.63e-09', ts2='2.63', photon_index='2.41' WHERE bin_id='428' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:22:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 150939: <4FGL_J1153.4+4931_daily_bin428> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin428> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:06:22 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:06:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:06:23 2021
Terminated at Sat Sep  4 15:22:47 2021
Results reported at Sat Sep  4 15:22:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin428 178.35 49.5169 350265601 350524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   953.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

