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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin194
RA = 178.35, Dec = 49.5169
tmin = 289612801, tmax = 289872001
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='149329', job_status='RUN', time_executed='2021-09-04 15:01:32.642296', time_epoch_executed='1630792892.64' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149329/ft1_4FGL_J1153.4+4931_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149329/ft2_4FGL_J1153.4+4931_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149329/ft1_4FGL_J1153.4+4931_daily_bin194.fits outfile=/scratch/kocevski/149329/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin194.fits ra=178.35 dec=49.5169 rad=12.0 tmin=289612801.0 tmax=289872001.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.47
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149329/ft1_filtered_4FGL_J1153.4+4931_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/149329/ft2_4FGL_J1153.4+4931_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/149329/ltcube_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.fits outfile=/scratch/kocevski/149329/expmap_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.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/149329/ltcube_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.fits
.....................!
real 190.37
user 185.44
sys 4.44

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/149329/ft1_filtered_4FGL_J1153.4+4931_daily_bin194.fits scfile=/scratch/kocevski/149329/ft2_4FGL_J1153.4+4931_daily_bin194.fits outfile=/scratch/kocevski/149329/cmap_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.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/149329/ft1_filtered_4FGL_J1153.4+4931_daily_bin194.fits scfile=/scratch/kocevski/149329/ft2_4FGL_J1153.4+4931_daily_bin194.fits outfile=/scratch/kocevski/149329/cmap_HighResolution_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.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/149329/ft1_filtered_4FGL_J1153.4+4931_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/149329/ft2_4FGL_J1153.4+4931_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149329/Model_4FGL_J1153.4+4931_daily_bin194.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/149329/ft1_filtered_4FGL_J1153.4+4931_daily_bin194.fits.....................!
real 54.87
user 53.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    185.67       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.740       1.0000         .10000E-03   10000.    
     4 'norm      '    .49350E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7154       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.773       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7388       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.560       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5785       1.0000         .10000E-03   10000.    
    21 'norm      '    11.910       1.0000         .10000E-03   10000.    
    22 'norm      '    .13193E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7429       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6330       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7613       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.4741       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78010       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0693       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=   6512.378     FROM MIGRAD    STATUS=CONVERGED   1315 CALLS     4368 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.942        82.222        .42137E-04    .24822E-05
   2  Prefactor     185.75        137.24        .14816E-03    .15346E-06
   3  Prefactor     54.737        75.622        .54215E-04    .10485E-05
   4  norm          .10000E-03    1.9223        .29748E-01** at limit **
   5  Prefactor     14.873        50.005        .10383E-03    .63503E-05
   6  Prefactor     .10000E-03    20.251        .18142E-02** at limit **
   7  Prefactor     .10000E-03    38.094        .18142E-02** at limit **
   8  norm          .10000E-03    83.245        .18142E-02** at limit **
   9  Prefactor     8.2789        6.0308        .13934E-03    .62825E-04
  10  Prefactor     3.7155        38.873        .20950E-03    .15086E-04
  11  norm          3.0248        2.8101        .12520E-03    .17617E-04
  12  Prefactor     23.777        33.660        .82155E-04   -.55352E-06
  13  norm          .10000E-03    6.7721        .18142E-02** at limit **
  14  norm          2.7387        1.0560        .24602E-04   -.13863E-05
  15  norm          6.2406        6.0667        .16069E-03   -.12310E-04
  16  Prefactor     12.693        4.2220        .90458E-04   -.45496E-04
  17  Prefactor     11.559        24.112        .11783E-03    .12543E-05
  18  norm          8.6264        5.2724        .13225E-03    .46162E-04
  19  Prefactor     .10000E-03    12.736        .18142E-02** at limit **
  20  Prefactor     7.5788        6.8669        .14568E-03    .10770E-04
  21  norm          11.910        3.0977        .68118E-04   -.35048E-05
  22  norm          .10000E-03    14.544        .31657E-02** at limit **
  23  Prefactor     2.7545        25.614        .24582E-03    .50872E-06
  24  Prefactor     4.6330        6.2713        .18699E-03    .16416E-04
  25  norm          1.7613        1.8968        .10931E-03    .21424E-04
  26  Prefactor     .10000E-03    28.700        .18142E-02** at limit **
  27  norm          7.4740        2.8895        .82089E-04   -.53873E-04
  28  Normalizat    .78010        .20069        .25696E-03   -.39244E-04
  29  Prefactor     1.0693        .23352        .28052E-03   -.52321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.9423
  Prefactor  = 185.754
  Prefactor  = 54.7371
  norm       = 0.0001
  Prefactor  = 14.8735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.27889
  Prefactor  = 3.71548
  norm       = 3.02482
  Prefactor  = 23.7772
  norm       = 0.0001
  norm       = 2.73874
  norm       = 6.24059
  Prefactor  = 12.6932
  Prefactor  = 11.5588
  norm       = 8.62645
  Prefactor  = 0.0001
  Prefactor  = 7.57876
  norm       = 11.9098
  norm       = 0.0001
  Prefactor  = 2.75446
  Prefactor  = 4.63303
  norm       = 1.76128
  Prefactor  = 0.0001
  norm       = 7.47398
  Normalizat = 0.780101
  Prefactor  = 1.0693
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.378     FROM HESSE     STATUS=OK           533 CALLS     4901 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.942        82.225        .84273E-05   -1.3798    
   2  Prefactor     185.75        137.20        .59265E-05   -1.2974    
   3  Prefactor     54.737        75.621        .10843E-04   -1.4227    
   4  norm          .10000E-03    1.7151        .32570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.873        50.027        .41534E-05   -1.4936    
   6  Prefactor     .10000E-03    20.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    83.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2789        6.0304        .55735E-05   -1.5132    
  10  Prefactor     3.7155        38.861        .83800E-05   -1.5322    
  11  norm          3.0248        2.8100        .50078E-05   -1.5360    
  12  Prefactor     23.777        33.666        .32862E-05   -1.4732    
  13  norm          .10000E-03    6.7721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7387        1.0560        .98410E-06   -1.5377    
  15  norm          6.2406        6.0667        .64277E-05   -1.5208    
  16  Prefactor     12.693        4.2220        .36183E-05   -1.4995    
  17  Prefactor     11.559        24.116        .47130E-05   -1.5028    
  18  norm          8.6264        5.2721        .52900E-05   -1.5120    
  19  Prefactor     .10000E-03    12.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5788        6.8669        .58270E-05   -1.5157    
  21  norm          11.910        3.0977        .27247E-05   -1.5018    
  22  norm          .10000E-03    14.588        .63313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7545        25.414        .98330E-05   -1.5376    
  24  Prefactor     4.6330        6.2707        .74794E-05   -1.5277    
  25  norm          1.7613        1.8967        .43725E-05   -1.5443    
  26  Prefactor     .10000E-03    28.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.4740        2.8895        .32836E-05   -1.5161    
  28  Normalizat    .78010        .20089        .10278E-04   -1.0081    
  29  Prefactor     1.0693        .23377        .11221E-04   -.90454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51668e-11
Minuit parameter uncertainties:
  1  82.3282
  2  137.435
  3  75.754
  4  1.73988e-05
  5  50.1681
  6  1.35322e-05
  7  2.3713e-05
  8  0.00012926
  9  6.03082
  10  24.052
  11  2.81011
  12  33.6933
  13  5.42806e-06
  14  1.05604
  15  6.06733
  16  4.22206
  17  24.1364
  18  5.27238
  19  2.73029e-05
  20  6.8676
  21  3.09776
  22  6.63254e-06
  23  16.7425
  24  6.2716
  25  1.8968
  26  2.42781e-05
  27  2.88956
  28  0.201078
  29  0.233995
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.269e+01  4.222e+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.069e+00  2.340e-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:  7.801e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.43
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.13e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 1.33e-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) = 6512.12832907
delta logL = 0.249703656663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6512.12142092
delta logL = 0.256611806542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.084       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6678       1.0000          .0000       10.000    
     3 'Normalizat'    .75445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0933       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=   6512.121     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.088        43.423        .31545E-02    .60781E-04
   2  Index         2.6681        2.6830        .90956E-01    .12241E-03
   3  Normalizat    .75457        .10158        .43013E-01    .24719E-04
   4  Prefactor     1.0929        .11274        .62820E-01    .12387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0876
  Index      = 2.66808
  Normalizat = 0.754571
  Prefactor  = 1.09292
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.121     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.088        5.3738        .77383E-04   -1.5073    
   2  Index         2.6681        .39470        .38011E-02   -.48520    
   3  Normalizat    .75457        .18839        .26073E-03   -1.0178    
   4  Prefactor     1.0929        .23469        .27784E-03   -.89693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11652e-09
Minuit parameter uncertainties:
  1  5.37402
  2  0.395229
  3  0.188551
  4  0.234911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149329': 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) = 6512.12141709
delta logL = 0.256615632281

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.009e+01  5.374e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.668e+00  3.952e-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.093e+00  2.349e-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:  7.546e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.72
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.67 +/- 0.40
Photon Flux (Free Index): 1.41e-07 +/- 4.93e-08
Energy Flux (Free Index): 3.49e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/149329/cmap_HighResolution_289612801_289872001_4FGL_J1153.4+4931_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.49e-05', photon_flux_error='4.13e-08', dlogl='2.57e-01', energy_flux='4.01e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-04 15:16:31.819286', photon_index_error2='0.40', photon_index2='2.67', ts='22.43', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.78', time_epoch_completed='1630793791.82', return_code='0', job_id='149329', GAL2='1.09', EG2='0.75', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.93e-08', ts2='22.72', photon_index='2.41' WHERE bin_id='194' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 149329: <4FGL_J1153.4+4931_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin194 178.35 49.5169 289612801 289872001 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 :                                   896.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

