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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1052
RA = 179.637, Dec = 48.4161
tmin = 512006401, tmax = 512265601
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='199727', job_status='RUN', time_executed='2021-09-04 17:44:15.305758', time_epoch_executed='1630802655.31' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199727/ft1_4FGL_J1158.5+4824_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199727/ft2_4FGL_J1158.5+4824_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199727/ft1_4FGL_J1158.5+4824_daily_bin1052.fits outfile=/scratch/kocevski/199727/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1052.fits ra=179.637 dec=48.4161 rad=12.0 tmin=512006401.0 tmax=512265601.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.49
user 3.25
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199727/ft1_filtered_4FGL_J1158.5+4824_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/199727/ft2_4FGL_J1158.5+4824_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/199727/ltcube_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.fits outfile=/scratch/kocevski/199727/expmap_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.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/199727/ltcube_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.fits
.....................!
real 190.43
user 185.15
sys 4.93

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/199727/ft1_filtered_4FGL_J1158.5+4824_daily_bin1052.fits scfile=/scratch/kocevski/199727/ft2_4FGL_J1158.5+4824_daily_bin1052.fits outfile=/scratch/kocevski/199727/cmap_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199727/ft1_filtered_4FGL_J1158.5+4824_daily_bin1052.fits scfile=/scratch/kocevski/199727/ft2_4FGL_J1158.5+4824_daily_bin1052.fits outfile=/scratch/kocevski/199727/cmap_HighResolution_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12190E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.207       1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0545       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.573       1.0000         .10000E-03   10000.    
    15 'norm      '    20.210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.016       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7005       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0574       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7626       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6837       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57628       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4513       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=   6088.874     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2956 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.529       -.14846E-06** at limit **
   2  Prefactor     41.835        68.145        .88275E-07    .23639E-06
   3  Prefactor     .10000E-03    185.77        .73713E-05** at limit **
   4  Prefactor     32.638        52.147        .82914E-06    .57165E-05
   5  Prefactor     .10000E-03    116.65       -.84543E-05** at limit **
   6  norm          .10000E-03    13.375       -.67823E-07** at limit **
   7  Prefactor     .10000E-03    3.6758       -.19140E-07** at limit **
   8  Prefactor     14.208        24.419        .71668E-07    .19612E-05
   9  norm          .10000E-03    1.7544       -.49233E-07** at limit **
  10  Prefactor     .10000E-03    77.218        .29863E-05** at limit **
  11  norm          2.0548        1.1484       -.16701E-07   -.24809E-03
  12  norm          .10000E-03    3.4324       -.26656E-07** at limit **
  13  Prefactor     1.0885        2.3369       -.24829E-06   -.45702E-03
  14  Prefactor     28.574        47.129        .41595E-08   -.78172E-05
  15  norm          20.211        9.0967       -.56131E-07    .84224E-05
  16  Prefactor     14.011        15.815        .36207E-06    .38563E-04
  17  norm          4.7007        2.5643        .12854E-07    .54843E-04
  18  norm          .10000E-03    3.3062        .36510E-08** at limit **
  19  Prefactor     .10000E-03    8.4417       -.33225E-07** at limit **
  20  Prefactor     4.0575        5.6271        .17901E-05   -.26686E-04
  21  Prefactor     9.7627        10.830        .32623E-07    .15306E-05
  22  norm          3.6838        2.0641       -.35951E-08    .15651E-05
  23  Prefactor     .10000E-03    22.124        .94634E-07** at limit **
  24  Normalizat    .57610        .16330       -.32864E-06    .20728E-04
  25  Prefactor     1.4515        .20180       -.33067E-07    .18749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.8349
  Prefactor  = 0.0001
  Prefactor  = 32.6379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2075
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05477
  norm       = 0.0001
  Prefactor  = 1.08845
  Prefactor  = 28.5742
  norm       = 20.2107
  Prefactor  = 14.0113
  norm       = 4.70075
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05746
  Prefactor  = 9.76266
  norm       = 3.68377
  Prefactor  = 0.0001
  Normalizat = 0.5761
  Prefactor  = 1.45149
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.874     FROM HESSE     STATUS=OK           429 CALLS     3385 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.835        68.141        .61977E-04   -1.4413    
   3  Prefactor     .10000E-03    185.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.638        52.324        .70133E-04   -1.4565    
   5  Prefactor     .10000E-03    115.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7350        .14600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.208        24.414        .10627E-03   -1.4954    
   9  norm          .10000E-03    4.2238        .19938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    77.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0548        1.1429        .28836E-04   -1.5421    
  12  norm          .10000E-03    3.4353        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0885        1.9316        .15862E-02   -1.5499    
  14  Prefactor     28.574        47.098        .74949E-04   -1.4638    
  15  norm          20.211        9.0933        .89094E-04   -1.4809    
  16  Prefactor     14.011        15.348        .10699E-03   -1.4959    
  17  norm          4.7007        2.5665        .86327E-04   -1.5274    
  18  norm          .10000E-03    3.3344        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0575        5.6232        .10009E-02   -1.5305    
  21  Prefactor     9.7627        10.828        .12825E-03   -1.5083    
  22  norm          3.6838        2.0629        .81305E-04   -1.5324    
  23  Prefactor     .10000E-03    22.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .57610        .19132        .27985E-03   -1.0901    
  25  Prefactor     1.4515        .23843        .24088E-03   -.78908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34048e-10
Minuit parameter uncertainties:
  1  3.26106e-06
  2  68.2684
  3  0.000284493
  4  52.3978
  5  0.000271843
  6  6.98697e-07
  7  4.0264e-07
  8  24.4316
  9  1.45496e-05
  10  0.000110788
  11  1.14292
  12  1.45062e-07
  13  1.93172
  14  47.1596
  15  9.0939
  16  15.3519
  17  2.56654
  18  4.32425e-07
  19  6.96333e-07
  20  5.62394
  21  10.8305
  22  2.06296
  23  7.1982e-07
  24  0.191538
  25  0.238611
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.401e+01  1.535e+01  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.451e+00  2.386e-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:  5.761e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 7.31e-06 +/- 8.01e-06

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

Saving results to:
/scratch/kocevski/199727/likelihoodResults_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.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): 0
logL (Free Index) = 6088.75629231
delta logL = 0.11808089253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6088.75207406
delta logL = 0.122299145103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5364       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9713       1.0000          .0000       10.000    
     3 'Normalizat'    .56012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4646       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=   6088.752     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      288 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5316        21.465        .13720E-03   -.48424E-03
   2  Index         2.9717        1.5958        .77723E-02   -.70778E-04
   3  Normalizat    .56010        .18646        .28359E-03    .17711E-03
   4  Prefactor     1.4646        .24085        .23998E-03    .64427E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53157
  Index      = 2.97175
  Normalizat = 0.560104
  Prefactor  = 1.46461
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.752     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5316        15.346        .54881E-05   -1.5124    
   2  Index         2.9717        1.1512        .31089E-03   -.41769    
   3  Normalizat    .56010        .18478        .11343E-04   -1.0971    
   4  Prefactor     1.4646        .23935        .47997E-04   -.78536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3029e-10
Minuit parameter uncertainties:
  1  15.353
  2  1.16369
  3  0.18498
  4  0.239535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199727': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6088.75207396
delta logL = 0.122299237234

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  8.532e+00  1.535e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.972e+00  1.164e+00  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.465e+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:  5.601e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.97 +/- 1.16
Photon Flux (Free Index): 3.45e-08 +/- 3.60e-08
Energy Flux (Free Index): 6.98e-06 +/- 6.52e-06

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/199727/cmap_HighResolution_512006401_512265601_4FGL_J1158.5+4824_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='6.98e-06', photon_flux_error='2.58e-08', dlogl='1.22e-01', energy_flux='7.31e-06', photon_flux2='3.45e-08', job_status='DONE', time_completed='2021-09-04 17:57:11.094889', photon_index_error2='1.16', photon_index2='2.97', ts='1.42', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='8.29e-08', energy_flux_error2='6.52e-06', EG='0.58', time_epoch_completed='1630803431.09', return_code='0', job_id='199727', GAL2='1.46', EG2='0.56', return_code2='0', energy_flux_error='8.01e-06', photon_flux_error2='3.60e-08', ts2='1.68', photon_index='2.44' WHERE bin_id='1052' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 199727: <4FGL_J1158.5+4824_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1052 179.637 48.4161 512006401 512265601 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 :                                   774.26 sec.
    Max Memory :                                 1001 MB
    Average Memory :                             272.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

