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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin359
RA = 178.35, Dec = 49.5169
tmin = 332380801, tmax = 332640001
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='150734', job_status='RUN', time_executed='2021-09-04 15:06:13.627376', time_epoch_executed='1630793173.63' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150734/ft1_4FGL_J1153.4+4931_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150734/ft1_4FGL_J1153.4+4931_daily_bin359.fits outfile=/scratch/kocevski/150734/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin359.fits ra=178.35 dec=49.5169 rad=12.0 tmin=332380801.0 tmax=332640001.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.29
user 3.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150734/ft1_filtered_4FGL_J1153.4+4931_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/150734/ltcube_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.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/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits
.....................!
real 12.20
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150734/ft1_filtered_4FGL_J1153.4+4931_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/150734/ltcube_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.fits outfile=/scratch/kocevski/150734/expmap_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.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/150734/ltcube_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.fits
.....................!
real 191.86
user 185.26
sys 5.01

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/150734/ft1_filtered_4FGL_J1153.4+4931_daily_bin359.fits scfile=/scratch/kocevski/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits outfile=/scratch/kocevski/150734/cmap_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150734/ft1_filtered_4FGL_J1153.4+4931_daily_bin359.fits scfile=/scratch/kocevski/150734/ft2_4FGL_J1153.4+4931_daily_bin359.fits outfile=/scratch/kocevski/150734/cmap_HighResolution_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18258E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21130E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.353       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4267       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5328       1.0000         .10000E-03   10000.    
    15 'norm      '    .11350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.761       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9829       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.4886       1.0000         .10000E-03   10000.    
    22 'norm      '    .11193E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.334       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4097       1.0000         .10000E-03   10000.    
    25 'norm      '    .54454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.0400       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54033       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3048       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=   5561.809     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3728 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.628        92.803       -.27248E-06   -.17427E-04
   2  Prefactor     .10000E-03    384.35        .11268E-06** at limit **
   3  Prefactor     .10000E-03    56.782        .85584E-07** at limit **
   4  norm          .10000E-03    1.3968        .41848E-08** at limit **
   5  Prefactor     4.3281        114.85       -.68308E-06   -.22587E-05
   6  Prefactor     .10000E-03    37.204       -.33836E-06** at limit **
   7  Prefactor     .10000E-03    354.21        .11705E-05** at limit **
   8  norm          5.4915        97.995        .12804E-06   -.27373E-05
   9  Prefactor     1.7303        5.6132        .15642E-05   -.99220E-05
  10  Prefactor     36.337        37.278       -.94188E-06   -.26303E-04
  11  norm          1.4268        2.4984        .23254E-06    .11504E-04
  12  Prefactor     .10000E-03    15.521        .40438E-07** at limit **
  13  norm          .10000E-03    8.9216        .33762E-07** at limit **
  14  norm          3.5334        1.3435        .14576E-07    .17172E-04
  15  norm          .10000E-03    7.0687       -.61899E-06** at limit **
  16  Prefactor     29.720        6.5572        .10877E-07   -.47220E-04
  17  Prefactor     15.616        48.238       -.13369E-06   -.12632E-04
  18  norm          5.9879        4.9573        .10002E-07   -.25747E-04
  19  Prefactor     12.926        18.934        .82953E-07   -.45805E-05
  20  Prefactor     .10000E-03    11.598        .36975E-06** at limit **
  21  norm          6.4879        2.9012        .15942E-08   -.88826E-04
  22  norm          .10000E-03    7.9591        .18376E-05** at limit **
  23  Prefactor     16.308        23.275       -.15481E-06   -.36478E-04
  24  Prefactor     2.3986        8.8364        .22694E-06   -.72780E-04
  25  norm          .54820        3.7165        .93963E-06    .13184E-04
  26  Prefactor     .10000E-03    4.5567        .14000E-06** at limit **
  27  norm          8.0400        2.8314       -.12531E-07   -.45096E-04
  28  Normalizat    .54061        .18108       -.12728E-05   -.38838E-04
  29  Prefactor     1.3046        .21730        .68322E-06   -.98214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.32813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49147
  Prefactor  = 1.73032
  Prefactor  = 36.3372
  norm       = 1.42677
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.5334
  norm       = 0.0001
  Prefactor  = 29.7196
  Prefactor  = 15.6163
  norm       = 5.98793
  Prefactor  = 12.9257
  Prefactor  = 0.0001
  norm       = 6.48794
  norm       = 0.0001
  Prefactor  = 16.3084
  Prefactor  = 2.39864
  norm       = 0.548203
  Prefactor  = 0.0001
  norm       = 8.04
  Normalizat = 0.540606
  Prefactor  = 1.30461
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.809     FROM HESSE     STATUS=OK           555 CALLS     4283 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.628        92.869        .77506E-04   -1.4675    
   2  Prefactor     .10000E-03    386.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4432        .17200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3281        114.65        .19249E-03   -1.5292    
   6  Prefactor     .10000E-03    37.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    361.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.4915        98.867        .17054E-03   -1.5239    
   9  Prefactor     1.7303        5.5766        .29353E-03   -1.5445    
  10  Prefactor     36.337        37.247        .66469E-04   -1.4502    
  11  norm          1.4268        2.4622        .15096E-03   -1.5469    
  12  Prefactor     .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5334        1.3427        .48836E-04   -1.5332    
  15  norm          .10000E-03    7.0772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.720        6.5584        .73491E-04   -1.4617    
  17  Prefactor     15.616        48.248        .10089E-03   -1.4917    
  18  norm          5.9879        4.9413        .14411E-03   -1.5219    
  19  Prefactor     12.926        18.922        .11140E-03   -1.4989    
  20  Prefactor     .10000E-03    11.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.4879        2.9045        .79907E-04   -1.5198    
  22  norm          .10000E-03    8.0258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.308        23.261        .99099E-04   -1.4900    
  24  Prefactor     2.3986        8.1164        .26373E-03   -1.5398    
  25  norm          .54820        3.1345        .21845E-03   -1.5560    
  26  Prefactor     .10000E-03    4.5605        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.0400        2.8308        .71983E-04   -1.5141    
  28  Normalizat    .54061        .20848        .29298E-03   -1.1057    
  29  Prefactor     1.3046        .25383        .25355E-03   -.83170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68595e-11
Minuit parameter uncertainties:
  1  93.3791
  2  6.62019e-05
  3  3.38043e-06
  4  3.21298e-07
  5  44.6475
  6  3.06172e-06
  7  0.000792934
  8  46.6912
  9  5.5783
  10  37.2708
  11  2.46236
  12  3.5965e-07
  13  1.8459e-06
  14  1.34267
  15  4.5554e-06
  16  6.55855
  17  48.3691
  18  4.94159
  19  18.9303
  20  5.52754e-06
  21  2.90461
  22  9.91604e-06
  23  23.274
  24  8.12013
  25  2.62169
  26  2.30415e-07
  27  2.83087
  28  0.208778
  29  0.254066
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.972e+01  6.559e+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:  1.305e+00  2.541e-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:  5.406e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.02
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 6.42e-08
Energy Flux (Fixed Index): 9.39e-05 +/- 2.07e-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) = 5561.72336349
delta logL = 0.0853670376018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5561.71269067
delta logL = 0.096039857799

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5561.713     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      264 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.178        8.2509        .76085E-04    .19718E-02
   2  Index         2.5109        .23026        .24655E-03    .54901E-03
   3  Normalizat    .52417        .19608        .29704E-03   -.22084E-04
   4  Prefactor     1.3198        .25094        .25226E-03   -.68988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.178
  Index      = 2.51086
  Normalizat = 0.52417
  Prefactor  = 1.31979
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.713     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.178        8.2253        .15217E-04   -1.4665    
   2  Index         2.5109        .22954        .98618E-05   -.52109    
   3  Normalizat    .52417        .19622        .11882E-04   -1.1131    
   4  Prefactor     1.3198        .25111        .50453E-04   -.82720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06527e-10
Minuit parameter uncertainties:
  1  8.22565
  2  0.229646
  3  0.196476
  4  0.251343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150734': 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) = 5561.71269007
delta logL = 0.0960404574826

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.718e+01  8.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.511e+00  2.296e-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:  1.320e+00  2.513e-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:  5.242e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.06
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.51 +/- 0.23
Photon Flux (Free Index): 3.05e-07 +/- 6.95e-08
Energy Flux (Free Index): 8.73e-05 +/- 2.25e-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/150734/cmap_HighResolution_332380801_332640001_4FGL_J1153.4+4931_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='8.73e-05', photon_flux_error='6.42e-08', dlogl='9.60e-02', energy_flux='9.39e-05', photon_flux2='3.05e-07', job_status='DONE', time_completed='2021-09-04 15:18:55.848505', photon_index_error2='0.23', photon_index2='2.51', ts='62.02', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='0.54', time_epoch_completed='1630793935.85', return_code='0', job_id='150734', GAL2='1.32', EG2='0.52', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='6.95e-08', ts2='62.06', photon_index='2.41' WHERE bin_id='359' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:18:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 150734: <4FGL_J1153.4+4931_daily_bin359> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin359> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:06:02 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:06:03 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:03 2021
Terminated at Sat Sep  4 15:18:59 2021
Results reported at Sat Sep  4 15:18:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin359 178.35 49.5169 332380801 332640001 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 :                                   757.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            777 sec.

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

