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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1066
RA = 179.637, Dec = 48.4161
tmin = 515635201, tmax = 515894401
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='199748', job_status='RUN', time_executed='2021-09-04 17:45:25.819258', time_epoch_executed='1630802725.82' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199748/ft1_4FGL_J1158.5+4824_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199748/ft1_4FGL_J1158.5+4824_daily_bin1066.fits outfile=/scratch/kocevski/199748/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1066.fits ra=179.637 dec=48.4161 rad=12.0 tmin=515635201.0 tmax=515894401.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.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/199748/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1066.fits evtable="EVENTS" outfile="/scratch/kocevski/199748/ft1_filtered_4FGL_J1158.5+4824_daily_bin1066.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199748/ft1_filtered_4FGL_J1158.5+4824_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/199748/ltcube_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.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/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits
.....................!
real 12.37
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199748/ft1_filtered_4FGL_J1158.5+4824_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/199748/ltcube_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.fits outfile=/scratch/kocevski/199748/expmap_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.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/199748/ltcube_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.fits
.....................!
real 190.69
user 185.51
sys 4.87

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/199748/ft1_filtered_4FGL_J1158.5+4824_daily_bin1066.fits scfile=/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits outfile=/scratch/kocevski/199748/cmap_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.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.83
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199748/ft1_filtered_4FGL_J1158.5+4824_daily_bin1066.fits scfile=/scratch/kocevski/199748/ft2_4FGL_J1158.5+4824_daily_bin1066.fits outfile=/scratch/kocevski/199748/cmap_HighResolution_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.090       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2864       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.829       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6881       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9386       1.0000         .10000E-03   10000.    
    18 'norm      '    11.330       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69578       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0833       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=   5681.899     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2856 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.940        .42840E-06** at limit **
   2  Prefactor     7.9997        230.41        .11607E-04   -.25612E-05
   3  Prefactor     75.172        111.16        .71196E-05    .50594E-06
   4  Prefactor     28.739        52.504        .98345E-05   -.17417E-05
   5  Prefactor     .10000E-03    68.529       -.12432E-05** at limit **
   6  norm          .10000E-03    18.795       -.10308E-05** at limit **
   7  Prefactor     13.091        7.3763       -.15598E-06   -.29887E-04
   8  Prefactor     7.2842        25.872       -.22960E-07   -.13947E-05
   9  norm          .10000E-03    1.1060        .21804E-07** at limit **
  10  Prefactor     18.824        38.535        .76383E-06   -.12967E-05
  11  norm          4.6881        1.4463        .30556E-07   -.50096E-04
  12  norm          3.5968        5.7272        .40167E-06    .31505E-05
  13  Prefactor     9.0385        3.8986        .56433E-07   -.59517E-04
  14  Prefactor     .10000E-03    32.901        .24744E-06** at limit **
  15  norm          2.2647        6.6620        .39281E-05    .34261E-05
  16  Prefactor     .10000E-03    14.982        .31281E-06** at limit **
  17  norm          2.9385        2.6503        .54552E-06   -.10099E-04
  18  norm          11.330        7.6241        .12931E-06   -.47385E-04
  19  Prefactor     .10000E-03    21.879        .99084E-06** at limit **
  20  Prefactor     6.5133        6.1224        .61628E-07   -.61596E-05
  21  Prefactor     .10000E-03    8.5882        .66346E-07** at limit **
  22  norm          3.8876        2.2556        .62547E-07   -.12635E-04
  23  Prefactor     .10000E-03    35.293       -.76052E-06** at limit **
  24  Normalizat    .69572        .16726       -.94451E-06    .23859E-05
  25  Prefactor     1.0834        .19858       -.12474E-05   -.32408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.99966
  Prefactor  = 75.1717
  Prefactor  = 28.7391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0913
  Prefactor  = 7.28422
  norm       = 0.0001
  Prefactor  = 18.8242
  norm       = 4.6881
  norm       = 3.59679
  Prefactor  = 9.03852
  Prefactor  = 0.0001
  norm       = 2.26469
  Prefactor  = 0.0001
  norm       = 2.93851
  norm       = 11.3305
  Prefactor  = 0.0001
  Prefactor  = 6.51333
  Prefactor  = 0.0001
  norm       = 3.88757
  Prefactor  = 0.0001
  Normalizat = 0.69572
  Prefactor  = 1.08343
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.899     FROM HESSE     STATUS=OK           433 CALLS     3289 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9997        231.70        .14130E-03   -1.5142    
   3  Prefactor     75.172        111.30        .23142E-03   -1.3972    
   4  Prefactor     28.739        52.612        .74609E-04   -1.4635    
   5  Prefactor     .10000E-03    68.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.091        7.3790        .11071E-03   -1.4984    
   8  Prefactor     7.2842        25.848        .14859E-03   -1.5168    
   9  norm          .10000E-03    1.1443        .15472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.824        38.726        .92302E-04   -1.4840    
  11  norm          4.6881        1.4547        .44208E-04   -1.5275    
  12  norm          3.5968        5.7168        .21305E-03   -1.5329    
  13  Prefactor     9.0385        3.8989        .92707E-04   -1.5107    
  14  Prefactor     .10000E-03    32.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2647        6.6735        .13648E-02   -1.5407    
  16  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9385        2.6450        .53855E-03   -1.5365    
  18  norm          11.330        7.6170        .11902E-03   -1.5035    
  19  Prefactor     .10000E-03    22.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5133        6.1189        .15725E-03   -1.5197    
  21  Prefactor     .10000E-03    8.6014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8876        2.2560        .83604E-04   -1.5314    
  23  Prefactor     .10000E-03    35.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69572        .19534        .25092E-03   -1.0406    
  25  Prefactor     1.0834        .23150        .26092E-03   -.89998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42083e-11
Minuit parameter uncertainties:
  1  3.18659e-05
  2  86.4765
  3  111.609
  4  52.6968
  5  2.45063e-05
  6  1.89671e-06
  7  7.37947
  8  25.8876
  9  1.29799e-06
  10  38.778
  11  1.45469
  12  5.71763
  13  3.89905
  14  1.31604e-05
  15  6.67572
  16  1.08955e-05
  17  2.64508
  18  7.61767
  19  2.34758e-05
  20  6.11948
  21  9.9655e-06
  22  2.25605
  23  2.17244e-05
  24  0.19554
  25  0.231718
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.090e-05  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:  1.083e+00  2.317e-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:  6.957e-01  1.955e-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: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199748/likelihoodResults_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.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) = 5681.89888925
delta logL = -0.000317108792842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5681.8985712
delta logL = 9.38586708799e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4864       1.0000          .0000       10.000    
     3 'Normalizat'    .69571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0834       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.

 FCN=   5681.899     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      255 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20932E-01    .69384E-01** at limit **
   2  Index         3.5026        6.6948        .50000       -.83956E-05
   3  Normalizat    .69572        .39810E-03    .42233E-01    .24904E-04
   4  Prefactor     1.0834        .50940E-03    .59003E-01    .10666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.50255
  Normalizat = 0.695719
  Prefactor  = 1.08343
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.899     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.854        .20586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5026        8.0768        .50000       -.30416    
   3  Normalizat    .69572        .60279E-02    .25091E-03   -1.0406    
   4  Prefactor     1.0834        .77118E-02    .26092E-03   -.89998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65809e-07
Minuit parameter uncertainties:
  1  9.47021e-05
  2  232.626
  3  0.00602795
  4  0.00771177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199748': 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) = 5681.89857114
delta logL = 9.98725226964e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  9.470e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.503e+00  2.326e+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:  1.083e+00  7.712e-03  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:  6.957e-01  6.028e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/199748/cmap_HighResolution_515635201_515894401_4FGL_J1158.5+4824_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-04 17:57:58.608871', job_id='199748', GAL2='1.08', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630803478.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1066' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 199748: <4FGL_J1158.5+4824_daily_bin1066> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1066 179.637 48.4161 515635201 515894401 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 :                                   743.13 sec.
    Max Memory :                                 1050 MB
    Average Memory :                             249.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

