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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1131
RA = 179.637, Dec = 48.4161
tmin = 532483201, tmax = 532742401
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='199849', job_status='RUN', time_executed='2021-09-04 17:43:55.212021', time_epoch_executed='1630802635.21' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199849/ft1_4FGL_J1158.5+4824_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199849/ft1_4FGL_J1158.5+4824_daily_bin1131.fits outfile=/scratch/kocevski/199849/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1131.fits ra=179.637 dec=48.4161 rad=12.0 tmin=532483201.0 tmax=532742401.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.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/199849/ltcube_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.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/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits
.....................!
real 12.22
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/199849/ltcube_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits outfile=/scratch/kocevski/199849/expmap_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.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/199849/ltcube_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits
.....................!
real 189.95
user 184.86
sys 4.65

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/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits scfile=/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits outfile=/scratch/kocevski/199849/cmap_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits scfile=/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits outfile=/scratch/kocevski/199849/cmap_HighResolution_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits', '/scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits', expMap='/scratch/kocevski/199849/expmap_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits', expCube='/scratch/kocevski/199849/ltcube_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/199849/Model_4FGL_J1158.5+4824_daily_bin1131.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/199849/ft1_filtered_4FGL_J1158.5+4824_daily_bin1131.fits
Spacecraft file(s): /scratch/kocevski/199849/ft2_4FGL_J1158.5+4824_daily_bin1131.fits
Exposure map: /scratch/kocevski/199849/expmap_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits
Exposure cube: /scratch/kocevski/199849/ltcube_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/199849/Model_4FGL_J1158.5+4824_daily_bin1131.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) = 6948.30123907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.227       1.0000         .10000E-03   10000.    
     9 'norm      '    6.6122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    109.82       1.0000         .10000E-03   10000.    
    11 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8923       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98758       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8790       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80792       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=   6948.277     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2898 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.055        .14522E-06** at limit **
   2  Prefactor     .10000E-03    35.777        .72621E-06** at limit **
   3  Prefactor     67.819        66.131        .10388E-05   -.62311E-05
   4  Prefactor     .10000E-03    10.497       -.72858E-08** at limit **
   5  Prefactor     .10000E-03    40.514       -.28769E-05** at limit **
   6  norm          26.899        26.696       -.51038E-06    .92364E-05
   7  Prefactor     .10000E-03    1.1516       -.23344E-07** at limit **
   8  Prefactor     29.223        23.712       -.66582E-07    .29890E-05
   9  norm          6.6133        3.3372        .29058E-06   -.66693E-04
  10  Prefactor     109.85        50.533        .14458E-05   -.95122E-05
  11  norm          .10000E-03    .58839        .81705E-06** at limit **
  12  norm          .10000E-03    5.1139        .38350E-08** at limit **
  13  Prefactor     4.5082        2.6568       -.47526E-07    .30922E-04
  14  Prefactor     9.9592        68.108        .25072E-05    .24487E-06
  15  norm          .10000E-03    1.8429       -.26635E-07** at limit **
  16  Prefactor     .10000E-03    4.7697       -.26445E-07** at limit **
  17  norm          .98751        1.2574       -.92274E-07   -.31492E-03
  18  norm          8.8845        4.9629       -.48140E-07    .27220E-04
  19  Prefactor     .10000E-03    3.8084       -.70039E-08** at limit **
  20  Prefactor     .10000E-03    2.6581       -.78879E-07** at limit **
  21  Prefactor     .10000E-03    24.049       -.18893E-05** at limit **
  22  norm          1.8789        1.6584       -.51751E-07   -.24822E-05
  23  Prefactor     .10000E-03    28.921        .30432E-05** at limit **
  24  Normalizat    1.1650        .15465        .66127E-06    .82130E-04
  25  Prefactor     .80796        .18987        .57916E-06    .49156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.8189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8988
  Prefactor  = 0.0001
  Prefactor  = 29.2225
  norm       = 6.61328
  Prefactor  = 109.848
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50823
  Prefactor  = 9.95923
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.98751
  norm       = 8.88448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87893
  Prefactor  = 0.0001
  Normalizat = 1.16497
  Prefactor  = 0.807958
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.277     FROM HESSE     STATUS=OK           425 CALLS     3323 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.819        66.099        .48735E-04   -1.4059    
   4  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.899        26.692        .77261E-04   -1.4670    
   7  Prefactor     .10000E-03    1.1531        .87357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.223        23.714        .74108E-04   -1.4626    
   9  norm          6.6133        3.3299        .10065E-03   -1.5194    
  10  Prefactor     109.85        50.429        .19191E-03   -1.3608    
  11  norm          .10000E-03    .58788        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.1247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5082        2.6544        .10048E-03   -1.5283    
  14  Prefactor     9.9592        67.801        .12740E-03   -1.5077    
  15  norm          .10000E-03    1.8495        .11051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7740        .17778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .98751        1.1138        .10182E-02   -1.5509    
  18  norm          8.8845        4.9617        .13447E-03   -1.5112    
  19  Prefactor     .10000E-03    3.8098        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6834        .13273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8789        1.6684        .97775E-04   -1.5434    
  23  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1650        .17892        .21478E-03   -.87692    
  25  Prefactor     .80796        .21929        .31093E-03   -.99436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56617e-11
Minuit parameter uncertainties:
  1  0.000119177
  2  2.48822e-05
  3  66.1708
  4  5.60652e-06
  5  4.75804e-05
  6  26.7042
  7  1.55339e-06
  8  23.7212
  9  3.32997
  10  50.4484
  11  4.87379e-07
  12  9.29918e-06
  13  2.65446
  14  52.0558
  15  2.92952e-06
  16  4.7007e-06
  17  1.11385
  18  4.96194
  19  2.84822e-06
  20  6.01281e-06
  21  3.36804e-05
  22  1.66843
  23  9.14488e-05
  24  0.179011
  25  0.219527
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  4.701e-06  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.080e-01  2.195e-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.165e+00  1.790e-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: 4.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199849/likelihoodResults_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.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) = 6948.27800398
delta logL = -0.000992905034764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6948.27701089
delta logL = 1.86801116797e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4192       1.0000          .0000       10.000    
     3 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80794       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=   6948.277     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.021        .18142E-01** at limit **
   2  Index         1.8244        5.7917        .50000       -.23101E-07
   3  Normalizat    1.1650        .65260E-02    .21479E-03   -.96368E-03
   4  Prefactor     .80796        .80466E-02    .31093E-03   -.60781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82441
  Normalizat = 1.16497
  Prefactor  = 0.807957
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.277     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    194.98        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8244        8.6293        .50000       -.68816    
   3  Normalizat    1.1650        .20989E-01    .42957E-04   -.87692    
   4  Prefactor     .80796        .25879E-01    .62186E-04   -.99436    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1374e-10
Minuit parameter uncertainties:
  1  2.78635e-05
  2  765.415
  3  0.0209888
  4  0.0258791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199849': 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) = 6948.27700804
delta logL = 3.03718843497e-06

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  2.786e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  1.824e+00  7.654e+02  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.080e-01  2.588e-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.165e+00  2.099e-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/199849/cmap_HighResolution_532483201_532742401_4FGL_J1158.5+4824_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2021-09-04 17:57:48.890590', job_id='199849', GAL2='0.81', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630803468.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1131' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:57:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 199849: <4FGL_J1158.5+4824_daily_bin1131> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1131> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:41:44 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:41:46 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:41:46 2021
Terminated at Sat Sep  4 17:57:49 2021
Results reported at Sat Sep  4 17:57:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1131 179.637 48.4161 532483201 532742401 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 :                                   831.00 sec.
    Max Memory :                                 1154 MB
    Average Memory :                             320.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

