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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin552
RA = 178.35, Dec = 49.5169
tmin = 382406401, tmax = 382665601
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='152508', job_status='RUN', time_executed='2021-09-04 15:13:07.396971', time_epoch_executed='1630793587.4' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152508/ft1_4FGL_J1153.4+4931_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152508/ft1_4FGL_J1153.4+4931_daily_bin552.fits outfile=/scratch/kocevski/152508/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin552.fits ra=178.35 dec=49.5169 rad=12.0 tmin=382406401.0 tmax=382665601.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 4.78
user 4.52
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/152508/ltcube_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.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/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits
.....................!
real 11.95
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/152508/ltcube_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits outfile=/scratch/kocevski/152508/expmap_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.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/152508/ltcube_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits
.....................!
real 195.56
user 187.09
sys 6.96

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/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits scfile=/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits outfile=/scratch/kocevski/152508/cmap_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits scfile=/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits outfile=/scratch/kocevski/152508/cmap_HighResolution_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits', '/scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits', expMap='/scratch/kocevski/152508/expmap_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits', expCube='/scratch/kocevski/152508/ltcube_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152508/Model_4FGL_J1153.4+4931_daily_bin552.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/152508/ft1_filtered_4FGL_J1153.4+4931_daily_bin552.fits
Spacecraft file(s): /scratch/kocevski/152508/ft2_4FGL_J1153.4+4931_daily_bin552.fits
Exposure map: /scratch/kocevski/152508/expmap_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits
Exposure cube: /scratch/kocevski/152508/ltcube_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152508/Model_4FGL_J1153.4+4931_daily_bin552.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) = 6149.78905464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93459E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0436       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1934       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9964       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .88769E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.925       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1376       1.0000         .10000E-03   10000.    
    22 'norm      '    22.399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.560       1.0000         .10000E-03   10000.    
    25 'norm      '    .76623       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.0048       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82862       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=   6149.779     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3694 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.201        .59006E-06** at limit **
   2  Prefactor     .10000E-03    37.800       -.78664E-06** at limit **
   3  Prefactor     .10000E-03    42.684       -.20952E-06** at limit **
   4  norm          2.3413        1.6976        .35311E-08   -.23041E-04
   5  Prefactor     22.055        46.559        .98190E-06    .42767E-04
   6  Prefactor     15.900        19.290        .16956E-06   -.42943E-05
   7  Prefactor     .10000E-03    97.720       -.11092E-06** at limit **
   8  norm          .10000E-03    21.156        .26487E-06** at limit **
   9  Prefactor     3.2916        5.3244        .80471E-06    .26244E-03
  10  Prefactor     .10000E-03    47.629        .13657E-05** at limit **
  11  norm          .10000E-03    1.1968       -.36687E-07** at limit **
  12  Prefactor     .10003E-03    187.02       -.64279E-05** at limit **
  13  norm          7.0396        12.721       -.14736E-07   -.43572E-04
  14  norm          1.1933        .94139       -.26900E-06   -.18238E-02
  15  norm          5.9964        6.3967        .94650E-08    .90607E-05
  16  Prefactor     13.356        5.3434       -.48790E-08   -.29005E-03
  17  Prefactor     .10000E-03    12.404        .31932E-07** at limit **
  18  norm          .11304        6.8275        .26306E-05   -.12522E-02
  19  Prefactor     4.0989        37.021        .83204E-06   -.18757E-05
  20  Prefactor     25.903        10.841       -.35480E-06   -.56899E-03
  21  norm          5.1377        2.3161        .30594E-07   -.34912E-03
  22  norm          22.400        8.0132        .28803E-07   -.79477E-04
  23  Prefactor     .10000E-03    5.3278       -.40818E-07** at limit **
  24  Prefactor     14.559        8.7816       -.57993E-06   -.42229E-03
  25  norm          .76570        2.5105        .15986E-05    .71905E-03
  26  Prefactor     .10000E-03    6.0352       -.20176E-07** at limit **
  27  norm          6.0048        2.7688        .31400E-07   -.11284E-03
  28  Normalizat    1.0555        .16971       -.10846E-05   -.58507E-03
  29  Prefactor     .82878        .20311        .25311E-06   -.36688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.34128
  Prefactor  = 22.0552
  Prefactor  = 15.9
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.29162
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100032
  norm       = 7.0396
  norm       = 1.19332
  norm       = 5.99638
  Prefactor  = 13.3561
  Prefactor  = 0.0001
  norm       = 0.113036
  Prefactor  = 4.09885
  Prefactor  = 25.9033
  norm       = 5.13767
  norm       = 22.3995
  Prefactor  = 0.0001
  Prefactor  = 14.5593
  norm       = 0.7657
  Prefactor  = 0.0001
  norm       = 6.00476
  Normalizat = 1.05551
  Prefactor  = 0.828782
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.779     FROM HESSE     STATUS=OK           555 CALLS     4249 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3413        1.6959        .83536E-04   -1.5402    
   5  Prefactor     22.055        46.729        .85307E-04   -1.4768    
   6  Prefactor     15.900        19.286        .10044E-03   -1.4910    
   7  Prefactor     .10000E-03    97.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    21.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2916        5.3144        .21913E-03   -1.5345    
  10  Prefactor     .10000E-03    48.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2021        .83718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    189.06        .41612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0396        12.729        .15115E-03   -1.5177    
  14  norm          1.1933        .92109        .64261E-04   -1.5489    
  15  norm          5.9964        6.3985        .16397E-03   -1.5218    
  16  Prefactor     13.356        5.2731        .92292E-04   -1.4977    
  17  Prefactor     .10000E-03    12.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11304        30.722        .23697E-02   -1.5641    
  19  Prefactor     4.0989        35.909        .19929E-03   -1.5303    
  20  Prefactor     25.903        11.147        .39338E-03   -1.4690    
  21  norm          5.1377        2.3179        .76684E-04   -1.5255    
  22  norm          22.400        8.0115        .84633E-04   -1.4761    
  23  Prefactor     .10000E-03    5.3309        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.559        8.6662        .10497E-03   -1.4945    
  25  norm          .76570        2.5544        .20411E-03   -1.5533    
  26  Prefactor     .10000E-03    6.0450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.0048        2.7679        .85780E-04   -1.5218    
  28  Normalizat    1.0555        .19708        .22552E-03   -.91193    
  29  Prefactor     .82878        .23559        .31437E-03   -.98676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74726e-08
Minuit parameter uncertainties:
  1  0.000363593
  2  0.000505557
  3  0.000124373
  4  1.69596
  5  46.8066
  6  19.2932
  7  0.0001203
  8  0.000124413
  9  5.31512
  10  0.00062627
  11  7.2242e-07
  12  0.00490695
  13  12.7337
  14  0.9211
  15  6.39922
  16  5.27326
  17  1.17378e-05
  18  3.72729
  19  24.2833
  20  11.1475
  21  2.31795
  22  8.01193
  23  5.14439e-06
  24  8.66698
  25  2.55481
  26  1.38809e-06
  27  2.76793
  28  0.197213
  29  0.235875
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.336e+01  5.273e+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:  8.288e-01  2.359e-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:  1.056e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.92
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 5.16e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 1.67e-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) = 6149.77906795
delta logL = 0.000145193007484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6149.77895667
delta logL = 0.000256480868302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.279       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4209       1.0000          .0000       10.000    
     3 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82946       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=   6149.779     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.270        65.711        .27480E-02    .88387E-04
   2  Index         2.4201        2.9732        .10537        .10908E-03
   3  Normalizat    1.0546        .12381        .40261E-01   -.89681E-05
   4  Prefactor     .82962        .12956        .71015E-01    .62157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2701
  Index      = 2.42006
  Normalizat = 1.05461
  Prefactor  = 0.829624
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.779     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.270        6.0272        .91868E-04   -1.4979    
   2  Index         2.4201        .36610        .43086E-02   -.54216    
   3  Normalizat    1.0546        .19191        .22560E-03   -.91223    
   4  Prefactor     .82962        .23680        .31423E-03   -.98645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03359e-12
Minuit parameter uncertainties:
  1  6.02743
  2  0.366545
  3  0.192035
  4  0.237096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152508': 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) = 6149.77894605
delta logL = 0.000267099745543

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.327e+01  6.027e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.420e+00  3.665e-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:  8.296e-01  2.371e-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:  1.055e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.78
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.42 +/- 0.37
Photon Flux (Free Index): 1.31e-07 +/- 5.08e-08
Energy Flux (Free Index): 4.19e-05 +/- 1.84e-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/152508/cmap_HighResolution_382406401_382665601_4FGL_J1153.4+4931_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='4.19e-05', photon_flux_error='5.16e-08', dlogl='2.67e-04', energy_flux='4.22e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-04 15:26:39.974839', photon_index_error2='0.37', photon_index2='2.42', ts='19.92', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.06', time_epoch_completed='1630794399.97', return_code='0', job_id='152508', GAL2='0.83', EG2='1.05', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.08e-08', ts2='19.78', photon_index='2.41' WHERE bin_id='552' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 152508: <4FGL_J1153.4+4931_daily_bin552> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin552> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:04 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:05 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:11:05 2021
Terminated at Sat Sep  4 15:26:40 2021
Results reported at Sat Sep  4 15:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin552 178.35 49.5169 382406401 382665601 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 :                                   810.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

