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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin222
RA = 178.35, Dec = 49.5169
tmin = 296870401, tmax = 297129601
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='149381', job_status='RUN', time_executed='2021-09-04 15:01:31.996310', time_epoch_executed='1630792892.0' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149381/ft1_4FGL_J1153.4+4931_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149381/ft1_4FGL_J1153.4+4931_daily_bin222.fits outfile=/scratch/kocevski/149381/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin222.fits ra=178.35 dec=49.5169 rad=12.0 tmin=296870401.0 tmax=297129601.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.62
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.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/149381/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/149381/ltcube_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.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/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/149381/ltcube_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.fits outfile=/scratch/kocevski/149381/expmap_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.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/149381/ltcube_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.fits
.....................!
real 190.13
user 185.51
sys 4.31

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/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits outfile=/scratch/kocevski/149381/cmap_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.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/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits outfile=/scratch/kocevski/149381/cmap_HighResolution_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.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/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/149381/ft2_4FGL_J1153.4+4931_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149381/Model_4FGL_J1153.4+4931_daily_bin222.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/149381/ft1_filtered_4FGL_J1153.4+4931_daily_bin222.fits.....................!
real 57.87
user 56.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.877       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5817       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.018       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3689       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.117       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .48211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37205E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1166       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1260       1.0000         .10000E-03   10000.    
    22 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6761       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15876E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .47068       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.559       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3541       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86222       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1822       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=   6941.592     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3873 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.582        .21231E-05** at limit **
   2  Prefactor     .10000E-03    62.115        .90722E-06** at limit **
   3  Prefactor     .10000E-03    119.87       -.54364E-06** at limit **
   4  norm          4.0916        2.2413        .43183E-07   -.38770E-04
   5  Prefactor     .10000E-03    55.873       -.26755E-05** at limit **
   6  Prefactor     .10000E-03    13.393        .82391E-07** at limit **
   7  Prefactor     57.895        49.567        .80396E-06    .18978E-04
   8  norm          .10000E-03    12.062       -.18486E-06** at limit **
   9  Prefactor     5.5804        5.9014        .11488E-06   -.43297E-04
  10  Prefactor     .10000E-03    8.1159        .73507E-07** at limit **
  11  norm          1.2473        2.9085        .11398E-06   -.55143E-04
  12  Prefactor     44.115        40.929       -.12316E-05    .13895E-03
  13  norm          .10000E-03    7.7253       -.76870E-07** at limit **
  14  norm          .10000E-03    .48212       -.32591E-06** at limit **
  15  norm          8.3723        7.5104       -.27269E-06    .11359E-04
  16  Prefactor     16.114        4.6709        .15014E-06   -.42470E-03
  17  Prefactor     .10000E-03    13.472        .78378E-07** at limit **
  18  norm          .49354        2.5174        .18756E-06    .14421E-03
  19  Prefactor     .10000E-03    107.40        .10118E-04** at limit **
  20  Prefactor     7.1123        7.1909        .52875E-07   -.33660E-04
  21  norm          7.1251        2.6497        .34242E-07   -.17717E-03
  22  norm          .10000E-03    3.5354       -.21321E-06** at limit **
  23  Prefactor     4.6714        16.289        .10546E-05   -.72459E-04
  24  Prefactor     .10001E-03    4.9997        .65929E-06** at limit **
  25  norm          .47196        2.0273       -.11270E-05   -.16802E-03
  26  Prefactor     27.582        27.782        .46204E-06   -.19282E-04
  27  norm          3.3538        2.0339        .43898E-07   -.19409E-03
  28  Normalizat    .86277        .16483       -.22637E-06   -.86784E-04
  29  Prefactor     1.1816        .19666       -.97975E-06   -.17031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.8949
  norm       = 0.0001
  Prefactor  = 5.58035
  Prefactor  = 0.0001
  norm       = 1.24734
  Prefactor  = 44.1149
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.37233
  Prefactor  = 16.1138
  Prefactor  = 0.0001
  norm       = 0.493536
  Prefactor  = 0.0001
  Prefactor  = 7.11229
  norm       = 7.12513
  norm       = 0.0001
  Prefactor  = 4.67143
  Prefactor  = 0.000100008
  norm       = 0.471965
  Prefactor  = 27.5821
  norm       = 3.35377
  Normalizat = 0.862775
  Prefactor  = 1.18155
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.592     FROM HESSE     STATUS=OK           567 CALLS     4440 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    120.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0916        2.2396        .89380E-04   -1.5303    
   5  Prefactor     .10000E-03    55.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.895        49.619        .52733E-04   -1.4185    
   8  norm          .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5804        5.8983        .17005E-03   -1.5235    
  10  Prefactor     .10000E-03    8.1274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2473        2.8585        .20212E-03   -1.5485    
  12  Prefactor     44.115        40.754        .60427E-04   -1.4379    
  13  norm          .10000E-03    7.7372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .48606        .92521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3723        7.5013        .13858E-03   -1.5129    
  16  Prefactor     16.114        4.4417        .87301E-04   -1.4905    
  17  Prefactor     .10000E-03    13.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .49354        8.5319        .23367E-02   -1.5567    
  19  Prefactor     .10000E-03    104.47        .58113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1123        7.4159        .15037E-03   -1.5175    
  21  norm          7.1251        2.6509        .78230E-04   -1.5174    
  22  norm          .10000E-03    3.5833        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6714        16.318        .93051E-03   -1.5276    
  24  Prefactor     .10001E-03    5.6152        .50308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .47196        2.4638        .23129E-03   -1.5571    
  26  Prefactor     27.582        27.846        .76314E-04   -1.4657    
  27  norm          3.3538        2.0320        .44860E-03   -1.5342    
  28  Normalizat    .86277        .19249        .24971E-03   -.97781    
  29  Prefactor     1.1816        .23173        .27588E-03   -.86901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0719e-10
Minuit parameter uncertainties:
  1  0.000325864
  2  0.000136216
  3  0.00021998
  4  2.23965
  5  2.00156e-05
  6  3.02882e-05
  7  49.6542
  8  6.19929e-06
  9  5.89887
  10  1.3348e-05
  11  2.85879
  12  40.7802
  13  3.93573e-06
  14  3.21915e-06
  15  7.50216
  16  4.44182
  17  1.58802e-05
  18  4.1043
  19  0.000371893
  20  7.41689
  21  2.65094
  22  3.60239e-05
  23  16.3337
  24  0.000430767
  25  2.15662
  26  27.8593
  27  2.03207
  28  0.192647
  29  0.23193
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.611e+01  4.442e+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.182e+00  2.319e-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:  8.628e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.54
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.35e-08
Energy Flux (Fixed Index): 5.09e-05 +/- 1.40e-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) = 6941.39028535
delta logL = 0.202099189848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6941.38425469
delta logL = 0.208129854811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.750       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5999       1.0000          .0000       10.000    
     3 'Normalizat'    .84096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2005       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=   6941.384     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      228 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.750        48.946        .27005E-02   -.35089E-02
   2  Index         2.5999        2.4452        .81664E-01   -.64153E-03
   3  Normalizat    .84100        .12033        .44143E-01   -.29500E-04
   4  Prefactor     1.2005        .12811        .61944E-01   -.97383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7498
  Index      = 2.59988
  Normalizat = 0.841003
  Prefactor  = 1.20051
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.384     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.750        5.5846        .78112E-04   -1.4966    
   2  Index         2.5999        .31064        .34597E-02   -.50068    
   3  Normalizat    .84100        .18503        .25240E-03   -.98565    
   4  Prefactor     1.2005        .23237        .27396E-03   -.86316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43604e-09
Minuit parameter uncertainties:
  1  5.58482
  2  0.310904
  3  0.185167
  4  0.232571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149381': 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) = 6941.38425462
delta logL = 0.208129926211

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.375e+01  5.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.600e+00  3.109e-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.201e+00  2.326e-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:  8.410e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.79
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.60 +/- 0.31
Photon Flux (Free Index): 1.75e-07 +/- 5.20e-08
Energy Flux (Free Index): 4.58e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149381/cmap_HighResolution_296870401_297129601_4FGL_J1153.4+4931_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='4.58e-05', photon_flux_error='4.35e-08', dlogl='2.08e-01', energy_flux='5.09e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-04 15:16:24.288535', photon_index_error2='0.31', photon_index2='2.60', ts='31.54', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.86', time_epoch_completed='1630793784.29', return_code='0', job_id='149381', GAL2='1.20', EG2='0.84', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.20e-08', ts2='31.79', photon_index='2.41' WHERE bin_id='222' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 149381: <4FGL_J1153.4+4931_daily_bin222> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin222> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 15:01:12 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:01:14 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:01:14 2021
Terminated at Sat Sep  4 15:16:25 2021
Results reported at Sat Sep  4 15:16:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin222 178.35 49.5169 296870401 297129601 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 :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

