/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7657
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin594
RA = 179.637, Dec = 48.4161
tmin = 393292801, tmax = 393552001
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='197681', job_status='RUN', time_executed='2021-09-04 17:37:12.824519', time_epoch_executed='1630802232.82' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197681/ft1_4FGL_J1158.5+4824_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197681/ft1_4FGL_J1158.5+4824_daily_bin594.fits outfile=/scratch/kocevski/197681/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin594.fits ra=179.637 dec=48.4161 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.69
user 4.43
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.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/197681/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/197681/ltcube_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.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/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits
.....................!
real 12.63
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/197681/ltcube_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits outfile=/scratch/kocevski/197681/expmap_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.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/197681/ltcube_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits
.....................!
real 192.56
user 186.10
sys 5.63

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits outfile=/scratch/kocevski/197681/cmap_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.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=179.637 yref=48.4161 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits outfile=/scratch/kocevski/197681/cmap_HighResolution_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.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=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197681/Model_4FGL_J1158.5+4824_daily_bin594.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/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits.....................!
real 60.09
user 58.69
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits', '/scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits', expMap='/scratch/kocevski/197681/expmap_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits', expCube='/scratch/kocevski/197681/ltcube_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197681/Model_4FGL_J1158.5+4824_daily_bin594.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197681/ft1_filtered_4FGL_J1158.5+4824_daily_bin594.fits
Spacecraft file(s): /scratch/kocevski/197681/ft2_4FGL_J1158.5+4824_daily_bin594.fits
Exposure map: /scratch/kocevski/197681/expmap_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits
Exposure cube: /scratch/kocevski/197681/ltcube_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197681/Model_4FGL_J1158.5+4824_daily_bin594.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) = 7487.76962053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4281       1.0000         .10000E-03   10000.    
     9 'norm      '    .10420E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9890       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2171       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .67651       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4888       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7816       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    128.00       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7487.769     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     3008 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.064        69.758        .47178E-06   -.11607E-04
   2  Prefactor     .10002E-03    52.976        .26784E-05** at limit **
   3  Prefactor     48.486        66.763        .46849E-06   -.57401E-05
   4  Prefactor     43.846        54.303       -.12802E-06   -.43347E-04
   5  Prefactor     .10002E-03    44.632       -.26442E-05** at limit **
   6  norm          33.622        46.963        .84059E-06   -.24244E-04
   7  Prefactor     1.8818        4.5146        .85366E-05   -.12705E-03
   8  Prefactor     3.4066        47.083       -.32122E-05   -.14855E-03
   9  norm          .10000E-03    1.4820        .12485E-05** at limit **
  10  Prefactor     4.0014        89.460       -.54891E-05   -.46507E-04
  11  norm          3.2169        1.2297        .71802E-07   -.97122E-03
  12  norm          3.1449        6.4789        .34221E-05    .99911E-04
  13  Prefactor     .67605        1.7063        .36406E-06    .44779E-04
  14  Prefactor     .10000E-03    24.120        .25053E-06** at limit **
  15  norm          4.4896        5.1294       -.15686E-06   -.19409E-03
  16  Prefactor     .10000E-03    3.9909        .13648E-07** at limit **
  17  norm          .10000E-03    .80251       -.21638E-07** at limit **
  18  norm          7.7097        5.5282        .11463E-06    .24497E-05
  19  Prefactor     .10000E-03    8.2470        .33552E-07** at limit **
  20  Prefactor     .10000E-03    3.1002        .10528E-07** at limit **
  21  Prefactor     9.7820        13.358        .25195E-06   -.69071E-05
  22  norm          1.3586        1.6849        .14952E-06    .21726E-04
  23  Prefactor     128.00        85.560        .71313E-06   -.44494E-05
  24  Normalizat    1.2205        .15448       -.59260E-06   -.35765E-03
  25  Prefactor     .86327        .18721       -.13787E-05   -.15427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.0641
  Prefactor  = 0.000100019
  Prefactor  = 48.4859
  Prefactor  = 43.8462
  Prefactor  = 0.000100017
  norm       = 33.6225
  Prefactor  = 1.88177
  Prefactor  = 3.40658
  norm       = 0.0001
  Prefactor  = 4.00144
  norm       = 3.2169
  norm       = 3.14494
  Prefactor  = 0.676049
  Prefactor  = 0.0001
  norm       = 4.48955
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.70967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.78195
  norm       = 1.35855
  Prefactor  = 127.999
  Normalizat = 1.22046
  Prefactor  = 0.863273
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.769     FROM HESSE     STATUS=OK           427 CALLS     3435 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.064        69.755        .45165E-04   -1.3927    
   2  Prefactor     .10002E-03    53.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.486        66.765        .57588E-04   -1.4314    
   4  Prefactor     43.846        54.506        .60544E-04   -1.4383    
   5  Prefactor     .10002E-03    44.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.622        47.004        .69104E-04   -1.4548    
   7  Prefactor     1.8818        4.5259        .13568E-02   -1.5434    
   8  Prefactor     3.4066        47.448        .21847E-03   -1.5339    
   9  norm          .10000E-03    3.1001        .20080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0014        87.432        .20194E-03   -1.5308    
  11  norm          3.2169        1.2216        .51508E-04   -1.5349    
  12  norm          3.1449        6.4697        .11427E-02   -1.5353    
  13  Prefactor     .67605        1.6970        .17148E-03   -1.5544    
  14  Prefactor     .10000E-03    24.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4896        5.1218        .19004E-03   -1.5284    
  16  Prefactor     .10000E-03    3.9950        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .82221        .75613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7097        5.5262        .14442E-03   -1.5153    
  19  Prefactor     .10000E-03    8.2595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1333        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7820        13.362        .12813E-03   -1.5082    
  22  norm          1.3586        1.6586        .12096E-03   -1.5475    
  23  Prefactor     128.00        85.602        .35584E-04   -1.3440    
  24  Normalizat    1.2205        .18381        .21838E-03   -.85973    
  25  Prefactor     .86327        .22232        .31414E-03   -.97436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38779e-09
Minuit parameter uncertainties:
  1  69.8272
  2  0.00199384
  3  66.8681
  4  54.5681
  5  0.00174249
  6  47.0559
  7  4.52674
  8  25.4513
  9  6.40489e-05
  10  37.4705
  11  1.22157
  12  6.47115
  13  1.69714
  14  9.61958e-05
  15  5.12228
  16  3.62046e-07
  17  1.08445e-06
  18  5.52661
  19  8.00292e-06
  20  4.46917e-06
  21  13.3656
  22  1.65862
  23  85.6849
  24  0.183912
  25  0.222549
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.620e-07  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.633e-01  2.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.220e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197681/likelihoodResults_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.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) = 7487.77050392
delta logL = -0.00118064111484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7487.76932323
delta logL = 4.97311702929e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4279       1.0000          .0000       10.000    
     3 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   7487.769     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      257 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.777        .17030E-01** at limit **
   2  Index         1.8580        5.2838        .50000        .12424E-06
   3  Normalizat    1.2205        .76060E-02    .21838E-03    .10813E-03
   4  Prefactor     .86327        .94139E-02    .31413E-03    .65939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85796
  Normalizat = 1.22047
  Prefactor  = 0.863272
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.769     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    267.76        .18671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8580        5.8657        .50000       -.67950    
   3  Normalizat    1.2205        .29840E-01    .43676E-04   -.85973    
   4  Prefactor     .86327        .36933E-01    .12565E-04   -.97437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.95614e-12
Minuit parameter uncertainties:
  1  0.000361577
  2  1175.61
  3  0.0298407
  4  0.0369337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197681': 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): 102
logL (Free Index) = 7487.769321
delta logL = 2.27938016906e-06

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  3.616e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.858e+00  1.176e+03  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.633e-01  3.693e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.220e+00  2.984e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

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/197681/cmap_HighResolution_393292801_393552001_4FGL_J1158.5+4824_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-04 17:52:13.565347', job_id='197681', GAL2='0.86', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630803133.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='594' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 197681: <4FGL_J1158.5+4824_daily_bin594> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin594> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:12 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36: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 17:36:14 2021
Terminated at Sat Sep  4 17:52:14 2021
Results reported at Sat Sep  4 17:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin594 179.637 48.4161 393292801 393552001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1158.5+4824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

