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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin655
RA = 178.35, Dec = 49.5169
tmin = 409104001, tmax = 409363201
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='152728', job_status='RUN', time_executed='2021-09-04 15:11:29.652712', time_epoch_executed='1630793489.65' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152728/ft1_4FGL_J1153.4+4931_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152728/ft2_4FGL_J1153.4+4931_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152728/ft1_4FGL_J1153.4+4931_daily_bin655.fits outfile=/scratch/kocevski/152728/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin655.fits ra=178.35 dec=49.5169 rad=12.0 tmin=409104001.0 tmax=409363201.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 5.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152728/ft2_4FGL_J1153.4+4931_daily_bin655.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/152728/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin655.fits evtable="EVENTS" outfile="/scratch/kocevski/152728/ft1_filtered_4FGL_J1153.4+4931_daily_bin655.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152728/ft1_filtered_4FGL_J1153.4+4931_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/152728/ft2_4FGL_J1153.4+4931_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/152728/ltcube_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.fits outfile=/scratch/kocevski/152728/expmap_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.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/152728/ltcube_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.fits
.....................!
real 190.79
user 186.02
sys 4.22

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/152728/ft1_filtered_4FGL_J1153.4+4931_daily_bin655.fits scfile=/scratch/kocevski/152728/ft2_4FGL_J1153.4+4931_daily_bin655.fits outfile=/scratch/kocevski/152728/cmap_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152728/ft1_filtered_4FGL_J1153.4+4931_daily_bin655.fits scfile=/scratch/kocevski/152728/ft2_4FGL_J1153.4+4931_daily_bin655.fits outfile=/scratch/kocevski/152728/cmap_HighResolution_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    83.052       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.206       1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.779       1.0000         .10000E-03   10000.    
    13 'norm      '    11.300       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8411       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12680E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.531       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6349       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.397       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7046       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1902       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.9837       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59706       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=   5198.181     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3634 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.182        .21339E-04** at limit **
   2  Prefactor     .10000E-03    34.881        .10041E-04** at limit **
   3  Prefactor     83.018        101.64       -.34328E-04    .38343E-05
   4  norm          2.3987        1.6825       -.96817E-07    .44508E-04
   5  Prefactor     .10000E-03    56.188       -.11418E-04** at limit **
   6  Prefactor     .10000E-03    6.4219       -.60846E-06** at limit **
   7  Prefactor     .10000E-03    28.979       -.80925E-05** at limit **
   8  norm          .10000E-03    28.296       -.96693E-05** at limit **
   9  Prefactor     .10000E-03    3.3777        .30836E-05** at limit **
  10  Prefactor     45.198        29.973       -.56220E-05   -.16082E-04
  11  norm          .10000E-03    1.0753        .54706E-07** at limit **
  12  Prefactor     39.748        47.192       -.35339E-04    .23268E-04
  13  norm          11.300        15.243        .20181E-06    .10878E-05
  14  norm          8.8408        1.9583        .98755E-06   -.44820E-03
  15  norm          .10000E-03    5.3331       -.63052E-07** at limit **
  16  Prefactor     .10000E-03    3.3292       -.38220E-05** at limit **
  17  Prefactor     .10000E-03    20.789        .43448E-05** at limit **
  18  norm          5.2500        5.2435       -.96529E-06   -.26961E-03
  19  Prefactor     33.527        22.886       -.10701E-05    .34377E-03
  20  Prefactor     .10000E-03    3.8489       -.22843E-06** at limit **
  21  norm          .10000E-03    .78301       -.11624E-06** at limit **
  22  norm          3.6328        6.5419       -.10255E-05   -.17671E-03
  23  Prefactor     34.393        25.245       -.26125E-05    .73500E-04
  24  Prefactor     4.7022        9.6512       -.83879E-06   -.25334E-03
  25  norm          3.1909        5.3164       -.22771E-06   -.34637E-03
  26  Prefactor     .10000E-03    13.154       -.13344E-05** at limit **
  27  norm          4.9836        2.2070        .68608E-07    .15425E-03
  28  Normalizat    1.1391        .17602        .46387E-05    .32171E-04
  29  Prefactor     .59700        .20591        .12598E-09    .23850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.0185
  norm       = 2.39869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1982
  norm       = 0.0001
  Prefactor  = 39.7479
  norm       = 11.3004
  norm       = 8.84078
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.25004
  Prefactor  = 33.5274
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.63276
  Prefactor  = 34.3925
  Prefactor  = 4.70217
  norm       = 3.19095
  Prefactor  = 0.0001
  norm       = 4.9836
  Normalizat = 1.13913
  Prefactor  = 0.597002
 **********
 **   18 **HESSE 
 **********

 FCN=   5198.181     FROM HESSE     STATUS=OK           547 CALLS     4181 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     83.018        101.75        .22038E-03   -1.3883    
   4  norm          2.3987        1.6812        .76292E-04   -1.5398    
   5  Prefactor     .10000E-03    56.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4277        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4038        .12930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.198        30.018        .59631E-04   -1.4362    
  11  norm          .10000E-03    1.0782        .73002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.748        47.223        .63553E-04   -1.4446    
  13  norm          11.300        15.242        .11918E-03   -1.5036    
  14  norm          8.8408        1.9612        .43099E-04   -1.5113    
  15  norm          .10000E-03    5.3585        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4039        .25516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2500        5.2383        .15526E-03   -1.5250    
  19  Prefactor     33.527        22.817        .69202E-04   -1.4549    
  20  Prefactor     .10000E-03    3.8551        .13793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .79643        .62257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6328        6.5110        .21190E-03   -1.5327    
  23  Prefactor     34.393        25.231        .68327E-04   -1.4534    
  24  Prefactor     4.7022        9.5480        .18552E-03   -1.5274    
  25  norm          3.1909        5.2509        .14862E-03   -1.5351    
  26  Prefactor     .10000E-03    13.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.9836        2.2086        .69395E-04   -1.5261    
  28  Normalizat    1.1391        .20058        .20802E-03   -.88505    
  29  Prefactor     .59700        .23267        .33858E-03   -1.0771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58969e-10
Minuit parameter uncertainties:
  1  5.1205e-05
  2  1.10544e-05
  3  101.962
  4  1.68126
  5  0.00018719
  6  1.32252e-06
  7  1.23711e-05
  8  1.89665e-05
  9  6.39537e-06
  10  30.0284
  11  1.56867e-05
  12  47.2679
  13  15.2472
  14  1.96119
  15  1.91394e-06
  16  1.41712e-05
  17  2.74422e-06
  18  5.23878
  19  22.8225
  20  1.10433e-05
  21  4.89891e-06
  22  6.51222
  23  25.2392
  24  9.55107
  25  5.25167
  26  2.67558e-05
  27  2.20862
  28  0.200719
  29  0.233043
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.417e-05  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:  5.970e-01  2.330e-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.139e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/152728/likelihoodResults_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.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): 102
logL (Free Index) = 5198.18262212
delta logL = -0.00140177226149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5198.18121837
delta logL = 1.98520046979e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4701       1.0000          .0000       10.000    
     3 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59696       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5198.181     FROM MIGRAD    STATUS=FAILED        98 CALLS      258 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    343.26        .21975E-02** at limit **
   2  Index         2.5420        5.2096        .50000       -.17593E-03
   3  Normalizat    1.1391        .37715E-01    .20802E-03    .30570E-03
   4  Prefactor     .59700        .45787E-01    .33859E-03    .14700E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5198.181     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      407 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    343.26        .32624E-03** at limit **
   2  Index         2.5420        5.2096        .18420E-04   -.17593E-03
   3  Normalizat    1.1391        .37715E-01    .47142E-06    .30570E-03
   4  Prefactor     .59700        .45787E-01    .36492E-06    .14700E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5197.590     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      526 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78447E-01    .14404        .43055E-02   -.72148E-02
   2  Index         5.0359        .84500        .12125        .25652E-03
   3  Normalizat    1.0710        .20765        .41604E-03   -.39259E-03
   4  Prefactor     .64695        .24067        .13543E-03   -.26252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0784466
  Index      = 5.03588
  Normalizat = 1.07095
  Prefactor  = 0.646951
 **********
 **   18 **HESSE 
 **********

 FCN=   5197.590     FROM HESSE     STATUS=OK            31 CALLS      557 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78447E-01    .39828        .19560E-03   -1.5764    
   2  Index         5.0359        2.3397        .61002E-02    .71754E-02
   3  Normalizat    1.0710        .20035        .83209E-04   -.90690    
   4  Prefactor     .64695        .23696        .27087E-04   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49485e-10
Minuit parameter uncertainties:
  1  0.353298
  2  2.43482
  3  0.200492
  4  0.237324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152728': 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) = 5197.59039388
delta logL = 0.59082647754

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.845e-02  3.533e-01  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  5.036e+00  2.435e+00  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:  6.470e-01  2.373e-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.071e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 178.350 49.517
Photon Index (Free Index): 5.04 +/- 2.43
Photon Flux (Free Index): 5.76e-08 +/- 5.05e-07
Energy Flux (Free Index): 7.64e-06 +/- 6.56e-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/152728/cmap_HighResolution_409104001_409363201_4FGL_J1153.4+4931_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', comment='SUCCESS', energy_flux2='7.64e-06', dlogl='5.91e-01', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-09-04 15:25:32.612099', photon_index_error2='2.43', photon_index2='5.04', ts='-0.00', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='6.56e-05', EG='1.14', time_epoch_completed='1630794332.61', return_code='0', job_id='152728', GAL2='0.65', EG2='1.07', return_code2='0', photon_flux_error2='5.05e-07', ts2='1.28', photon_index='2.41' WHERE bin_id='655' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 152728: <4FGL_J1153.4+4931_daily_bin655> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin655> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:17 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:19 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:19 2021
Terminated at Sat Sep  4 15:25:33 2021
Results reported at Sat Sep  4 15:25:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin655 178.35 49.5169 409104001 409363201 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 :                                   840.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

