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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin639
RA = 178.35, Dec = 49.5169
tmin = 404956801, tmax = 405216001
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='152695', job_status='RUN', time_executed='2021-09-04 15:11:28.313988', time_epoch_executed='1630793488.31' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152695/ft1_4FGL_J1153.4+4931_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152695/ft1_4FGL_J1153.4+4931_daily_bin639.fits outfile=/scratch/kocevski/152695/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin639.fits ra=178.35 dec=49.5169 rad=12.0 tmin=404956801.0 tmax=405216001.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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.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/152695/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin639.fits evtable="EVENTS" outfile="/scratch/kocevski/152695/ft1_filtered_4FGL_J1153.4+4931_daily_bin639.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/152695/ft1_filtered_4FGL_J1153.4+4931_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/152695/ltcube_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.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/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits
.....................!
real 11.77
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152695/ft1_filtered_4FGL_J1153.4+4931_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/152695/ltcube_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.fits outfile=/scratch/kocevski/152695/expmap_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.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/152695/ltcube_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.fits
.....................!
real 191.10
user 186.00
sys 4.78

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/152695/ft1_filtered_4FGL_J1153.4+4931_daily_bin639.fits scfile=/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits outfile=/scratch/kocevski/152695/cmap_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.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.52
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152695/ft1_filtered_4FGL_J1153.4+4931_daily_bin639.fits scfile=/scratch/kocevski/152695/ft2_4FGL_J1153.4+4931_daily_bin639.fits outfile=/scratch/kocevski/152695/cmap_HighResolution_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16569E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13544E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88151E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.394       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4482       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9146       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1765       1.0000         .10000E-03   10000.    
    21 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7961       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6575       1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.872       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0284       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92919       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96810       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=   6819.505     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3687 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.314        .19610E-05** at limit **
   2  Prefactor     .10000E-03    75.810       -.12171E-04** at limit **
   3  Prefactor     .10003E-03    431.27        .87893E-04** at limit **
   4  norm          .10000E-03    .76506       -.96218E-07** at limit **
   5  Prefactor     13.024        49.502        .10444E-04    .26480E-04
   6  Prefactor     .10000E-03    4.6215       -.59904E-07** at limit **
   7  Prefactor     57.212        72.449       -.11266E-03   -.72001E-06
   8  norm          .10000E-03    13.345        .11453E-04** at limit **
   9  Prefactor     2.8408        6.0039       -.23678E-05   -.47905E-03
  10  Prefactor     .10000E-03    13.290       -.11408E-04** at limit **
  11  norm          .10000E-03    .78315       -.39795E-07** at limit **
  12  Prefactor     16.701        26.186        .76301E-05   -.10012E-04
  13  norm          .10000E-03    7.6787        .15988E-06** at limit **
  14  norm          5.4480        1.3462       -.35322E-06    .29663E-03
  15  norm          2.2936        4.3916       -.48916E-06   -.33034E-03
  16  Prefactor     7.9144        3.4268       -.41744E-06    .10378E-03
  17  Prefactor     .10000E-03    21.051        .27675E-06** at limit **
  18  norm          10.903        6.5951       -.10342E-05    .10308E-03
  19  Prefactor     .10000E-03    6.6856       -.19745E-06** at limit **
  20  Prefactor     7.1774        8.6343       -.61619E-06   -.21673E-04
  21  norm          .10000E-03    1.2585       -.60854E-06** at limit **
  22  norm          .10000E-03    1.4933        .31175E-07** at limit **
  23  Prefactor     .10000E-03    8.6518       -.20299E-06** at limit **
  24  Prefactor     5.7975        4.9354       -.94177E-06   -.60107E-05
  25  norm          4.6576        3.0081        .43754E-07    .77808E-04
  26  Prefactor     48.908        23.949       -.17944E-04    .43383E-04
  27  norm          2.0274        2.1926       -.14667E-06   -.37135E-03
  28  Normalizat    .92934        .15765        .42274E-05    .10382E-03
  29  Prefactor     .96804        .18894        .46404E-05    .13854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 13.0243
  Prefactor  = 0.0001
  Prefactor  = 57.2115
  norm       = 0.0001
  Prefactor  = 2.84084
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7008
  norm       = 0.0001
  norm       = 5.44797
  norm       = 2.2936
  Prefactor  = 7.91442
  Prefactor  = 0.0001
  norm       = 10.9028
  Prefactor  = 0.0001
  Prefactor  = 7.17742
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79746
  norm       = 4.65758
  Prefactor  = 48.9084
  norm       = 2.02741
  Normalizat = 0.929337
  Prefactor  = 0.968043
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.505     FROM HESSE     STATUS=OK           555 CALLS     4242 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    75.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    439.35        .18306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .78297        .70515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.024        49.728        .11102E-03   -1.4986    
   6  Prefactor     .10000E-03    4.6234        .17338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.212        72.543        .26477E-03   -1.4194    
   8  norm          .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8408        6.0081        .24121E-03   -1.5371    
  10  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .78556        .71357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.701        26.209        .97976E-04   -1.4890    
  13  norm          .10000E-03    7.6874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4480        1.3485        .44475E-04   -1.5241    
  15  norm          2.2936        4.3661        .23347E-03   -1.5405    
  16  Prefactor     7.9144        3.4300        .95829E-04   -1.5145    
  17  Prefactor     .10000E-03    21.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.903        6.5921        .12134E-03   -1.5047    
  19  Prefactor     .10000E-03    6.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1774        8.6281        .14974E-03   -1.5172    
  21  norm          .10000E-03    2.3807        .17703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.4959        .98544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.7975        4.9395        .15928E-03   -1.5226    
  25  norm          4.6576        3.0120        .10857E-03   -1.5276    
  26  Prefactor     48.908        23.985        .57361E-04   -1.4308    
  27  norm          2.0274        2.1784        .12228E-03   -1.5423    
  28  Normalizat    .92934        .18253        .23063E-03   -.95437    
  29  Prefactor     .96804        .21906        .28518E-03   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86529e-10
Minuit parameter uncertainties:
  1  6.95614e-05
  2  0.000183378
  3  0.00686555
  4  7.46882e-06
  5  49.8865
  6  3.15713e-06
  7  72.6549
  8  3.35589e-05
  9  6.00933
  10  1.98298e-05
  11  4.87935e-06
  12  26.227
  13  7.09531e-07
  14  1.34855
  15  4.36675
  16  3.43007
  17  2.86751e-05
  18  6.59254
  19  1.23696e-05
  20  8.62955
  21  9.10278e-05
  22  3.21731e-06
  23  6.50241e-05
  24  4.93985
  25  3.01208
  26  23.9892
  27  2.17853
  28  0.18265
  29  0.21926
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.914e+00  3.430e+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:  9.680e-01  2.193e-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:  9.293e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.81
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.75e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.08e-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) = 6819.3257592
delta logL = 0.179607344157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6819.31106197
delta logL = 0.194304574794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2582       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6772       1.0000          .0000       10.000    
     3 'Normalizat'    .91357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98200       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=   6819.311     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      226 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2582        43.280        .40116E-02    .12860E-02
   2  Index         2.6772        3.0589        .11793        .12027E-03
   3  Normalizat    .91357        .77524E-01    .45075E-01    .12944E-04
   4  Prefactor     .98200        .89178E-01    .46042E-01    .14000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25819
  Index      = 2.67719
  Normalizat = 0.913569
  Prefactor  = 0.981999
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.311     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2582        4.2064        .82360E-04   -1.5208    
   2  Index         2.6772        .47470        .47537E-02   -.48314    
   3  Normalizat    .91357        .17459        .23236E-03   -.95985    
   4  Prefactor     .98200        .21858        .28343E-03   -.93332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53774e-09
Minuit parameter uncertainties:
  1  4.2066
  2  0.475614
  3  0.174695
  4  0.218774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152695': 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) = 6819.31106197
delta logL = 0.194304577418

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  6.258e+00  4.207e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.677e+00  4.756e-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:  9.820e-01  2.188e-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:  9.136e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.10
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.68 +/- 0.48
Photon Flux (Free Index): 8.88e-08 +/- 3.98e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.03e-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/152695/cmap_HighResolution_404956801_405216001_4FGL_J1153.4+4931_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.75e-08', energy_flux2='2.18e-05', photon_flux_error='3.36e-08', dlogl='1.94e-01', energy_flux='2.50e-05', photon_flux2='8.88e-08', job_status='DONE', time_completed='2021-09-04 15:25:47.038691', photon_index_error2='0.48', photon_index2='2.68', ts='9.81', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.93', time_epoch_completed='1630794347.04', return_code='0', job_id='152695', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.98e-08', ts2='10.10', photon_index='2.41' WHERE bin_id='639' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 152695: <4FGL_J1153.4+4931_daily_bin639> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin639 178.35 49.5169 404956801 405216001 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            877 sec.

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

