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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1103
RA = 179.637, Dec = 48.4161
tmin = 525225601, tmax = 525484801
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='199806', job_status='RUN', time_executed='2021-09-04 17:44:44.619723', time_epoch_executed='1630802684.62' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199806/ft1_4FGL_J1158.5+4824_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199806/ft1_4FGL_J1158.5+4824_daily_bin1103.fits outfile=/scratch/kocevski/199806/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1103.fits ra=179.637 dec=48.4161 rad=12.0 tmin=525225601.0 tmax=525484801.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.06
user 3.83
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.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/199806/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1103.fits evtable="EVENTS" outfile="/scratch/kocevski/199806/ft1_filtered_4FGL_J1158.5+4824_daily_bin1103.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/199806/ft1_filtered_4FGL_J1158.5+4824_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/199806/ltcube_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.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/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits
.....................!
real 11.88
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199806/ft1_filtered_4FGL_J1158.5+4824_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/199806/ltcube_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.fits outfile=/scratch/kocevski/199806/expmap_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.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/199806/ltcube_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.fits
.....................!
real 196.27
user 191.01
sys 4.88

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/199806/ft1_filtered_4FGL_J1158.5+4824_daily_bin1103.fits scfile=/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits outfile=/scratch/kocevski/199806/cmap_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199806/ft1_filtered_4FGL_J1158.5+4824_daily_bin1103.fits scfile=/scratch/kocevski/199806/ft2_4FGL_J1158.5+4824_daily_bin1103.fits outfile=/scratch/kocevski/199806/cmap_HighResolution_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14424E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0971       1.0000         .10000E-03   10000.    
     6 'norm      '    22.670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.089       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5536       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.624       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .36000       1.0000         .10000E-03   10000.    
    18 'norm      '    7.6705       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.555       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1800       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62669       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3243       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=   5719.205     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2924 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.846        72.924       -.27837E-05   -.28629E-05
   2  Prefactor     .10000E-03    261.42        .20372E-06** at limit **
   3  Prefactor     .10000E-03    187.61        .50958E-05** at limit **
   4  Prefactor     .10000E-03    17.037       -.37700E-07** at limit **
   5  Prefactor     8.0923        187.47       -.11168E-05   -.77326E-06
   6  norm          22.679        45.552        .12241E-05    .13396E-05
   7  Prefactor     6.1080        6.2905       -.11647E-06   -.87633E-04
   8  Prefactor     .10000E-03    9.6025       -.62269E-07** at limit **
   9  norm          4.6303        2.5877        .36526E-07   -.25174E-04
  10  Prefactor     24.075        34.321       -.44553E-06   -.31842E-05
  11  norm          2.5536        1.1403        .18188E-07   -.25682E-04
  12  norm          .10000E-03    2.4109        .26700E-08** at limit **
  13  Prefactor     6.8680        3.7394        .47614E-07   -.27244E-04
  14  Prefactor     57.631        44.044        .52035E-06    .13308E-05
  15  norm          .10000E-03    2.7179       -.68408E-08** at limit **
  16  Prefactor     .10000E-03    7.1116       -.22764E-07** at limit **
  17  norm          .35926        1.2951        .52087E-06   -.41351E-03
  18  norm          7.7213        10.826       -.43931E-05   -.18111E-04
  19  Prefactor     1.3999        173.52        .23049E-04    .44091E-05
  20  Prefactor     .10000E-03    1.5802        .30766E-08** at limit **
  21  Prefactor     20.587        26.006        .12389E-05    .24501E-04
  22  norm          2.1797        1.8310        .11585E-07   -.71007E-04
  23  Prefactor     .10000E-03    56.976       -.22850E-07** at limit **
  24  Normalizat    .62686        .16375       -.13128E-05    .85834E-06
  25  Prefactor     1.3243        .20243        .38338E-06   -.48452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.8462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09234
  norm       = 22.6791
  Prefactor  = 6.10805
  Prefactor  = 0.0001
  norm       = 4.63033
  Prefactor  = 24.075
  norm       = 2.55357
  norm       = 0.0001
  Prefactor  = 6.86798
  Prefactor  = 57.6314
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.359264
  norm       = 7.72132
  Prefactor  = 1.39988
  Prefactor  = 0.0001
  Prefactor  = 20.5866
  norm       = 2.17968
  Prefactor  = 0.0001
  Normalizat = 0.626861
  Prefactor  = 1.32427
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.205     FROM HESSE     STATUS=OK           427 CALLS     3351 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.846        73.016        .54650E-04   -1.4239    
   2  Prefactor     .10000E-03    261.98        .21121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    188.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0923        187.96        .14090E-03   -1.5139    
   6  norm          22.679        45.605        .84127E-04   -1.4755    
   7  Prefactor     6.1080        6.3041        .16243E-03   -1.5214    
   8  Prefactor     .10000E-03    9.6039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6303        2.5847        .87420E-04   -1.5278    
  10  Prefactor     24.075        34.371        .81615E-04   -1.4726    
  11  norm          2.5536        1.1421        .48487E-04   -1.5388    
  12  norm          .10000E-03    2.4111        .11468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8680        3.7397        .10238E-03   -1.5184    
  14  Prefactor     57.631        44.070        .52848E-04   -1.4188    
  15  norm          .10000E-03    2.7381        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .35926        1.2700        .15542E-03   -1.5588    
  18  norm          7.7213        10.862        .14479E-03   -1.5152    
  19  Prefactor     1.3999        177.88        .33826E-03   -1.5471    
  20  Prefactor     .10000E-03    1.5835        .92838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.587        26.138        .88344E-04   -1.4800    
  22  norm          2.1797        1.8258        .90805E-04   -1.5413    
  23  Prefactor     .10000E-03    57.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62686        .19167        .26543E-03   -1.0686    
  25  Prefactor     1.3243        .23932        .24564E-03   -.82588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99603e-11
Minuit parameter uncertainties:
  1  73.1378
  2  0.000173573
  3  0.000117704
  4  1.54667e-05
  5  78.278
  6  45.6752
  7  6.30483
  8  7.19493e-06
  9  2.58476
  10  34.3996
  11  1.14214
  12  2.09114e-08
  13  3.73983
  14  44.0953
  15  3.08028e-06
  16  8.33225e-06
  17  1.27005
  18  10.8646
  19  31.6558
  20  5.58865e-07
  21  26.1529
  22  1.8258
  23  7.08225e-05
  24  0.191872
  25  0.239519
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.332e-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:  1.324e+00  2.395e-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.269e-01  1.919e-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: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199806/likelihoodResults_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.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) = 5719.2059403
delta logL = -0.000667832612635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5719.20527244
delta logL = 2.2134372557e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4285       1.0000          .0000       10.000    
     3 'Normalizat'    .62686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3243       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=   5719.205     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    116.50        .18142E-02** at limit **
   2  Index         2.3461        8.7352        .50000        .13893E-04
   3  Normalizat    .62686        .15477E-01    .26543E-03   -.96372E-05
   4  Prefactor     1.3243        .20213E-01    .24564E-03   -.11570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101739
  Index      = 2.34613
  Normalizat = 0.62686
  Prefactor  = 1.32427
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.205     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10174E-03    469.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3461        7.6843        .50000       -.55951    
   3  Normalizat    .62686        .33176E-01    .10617E-04   -1.0686    
   4  Prefactor     1.3243        .43327E-01    .98258E-05   -.82588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38965e-08
Minuit parameter uncertainties:
  1  0.0575795
  2  1166.72
  3  0.0331775
  4  0.0433284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199806': 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) = 5719.20527223
delta logL = 2.36009327637e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.017e-04  5.758e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.346e+00  1.167e+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:  1.324e+00  4.333e-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:  6.269e-01  3.318e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/199806/cmap_HighResolution_525225601_525484801_4FGL_J1158.5+4824_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-04 17:57:14.559308', job_id='199806', GAL2='1.32', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630803434.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1103' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 199806: <4FGL_J1158.5+4824_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1103 179.637 48.4161 525225601 525484801 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 :                                   747.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             263.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

