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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1069
RA = 179.637, Dec = 48.4161
tmin = 516412801, tmax = 516672001
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='199753', job_status='RUN', time_executed='2021-09-04 17:41:48.086872', time_epoch_executed='1630802508.09' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199753/ft1_4FGL_J1158.5+4824_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199753/ft2_4FGL_J1158.5+4824_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199753/ft1_4FGL_J1158.5+4824_daily_bin1069.fits outfile=/scratch/kocevski/199753/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1069.fits ra=179.637 dec=48.4161 rad=12.0 tmin=516412801.0 tmax=516672001.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.25
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199753/ft1_filtered_4FGL_J1158.5+4824_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/199753/ft2_4FGL_J1158.5+4824_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/199753/ltcube_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.fits outfile=/scratch/kocevski/199753/expmap_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.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/199753/ltcube_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.fits
.....................!
real 190.28
user 185.13
sys 4.79

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/199753/ft1_filtered_4FGL_J1158.5+4824_daily_bin1069.fits scfile=/scratch/kocevski/199753/ft2_4FGL_J1158.5+4824_daily_bin1069.fits outfile=/scratch/kocevski/199753/cmap_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199753/ft1_filtered_4FGL_J1158.5+4824_daily_bin1069.fits scfile=/scratch/kocevski/199753/ft2_4FGL_J1158.5+4824_daily_bin1069.fits outfile=/scratch/kocevski/199753/cmap_HighResolution_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4242       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    105.31       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
     9 'norm      '    .52078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6603       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9548       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63916       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86953       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0112       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=   6043.146     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2901 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3736        157.01        .60876E-05   -.32441E-06
   2  Prefactor     40.102        106.36       -.85211E-05   -.51667E-05
   3  Prefactor     .10000E-03    81.439       -.16997E-05** at limit **
   4  Prefactor     .10000E-03    39.888        .67661E-06** at limit **
   5  Prefactor     105.32        91.901       -.20880E-06   -.12616E-06
   6  norm          .10000E-03    35.744       -.55087E-06** at limit **
   7  Prefactor     3.5309        5.4361        .13157E-05    .47838E-04
   8  Prefactor     17.342        21.891       -.23838E-06    .21183E-05
   9  norm          .52093        1.6648        .50894E-07   -.12685E-04
  10  Prefactor     .10000E-03    48.125        .28014E-06** at limit **
  11  norm          4.6601        1.2403       -.14570E-09   -.41439E-04
  12  norm          .10000E-03    3.6079       -.20142E-07** at limit **
  13  Prefactor     2.7842        2.3211        .72877E-08    .22531E-04
  14  Prefactor     .10000E-03    103.92        .85661E-06** at limit **
  15  norm          .10000E-03    2.8101        .46296E-07** at limit **
  16  Prefactor     3.9567        20.916        .10350E-06    .50835E-05
  17  norm          .10000E-03    .58635        .53944E-11** at limit **
  18  norm          .10000E-03    5.1279       -.15701E-06** at limit **
  19  Prefactor     27.761        21.675        .26932E-06    .10058E-03
  20  Prefactor     .10000E-03    2.3437       -.26945E-07** at limit **
  21  Prefactor     .69902        12.844       -.81375E-06    .12395E-03
  22  norm          2.6727        1.7649        .81075E-08    .54428E-04
  23  Prefactor     .10000E-03    12.203       -.87945E-08** at limit **
  24  Normalizat    .86951        .15504       -.53283E-06    .10339E-03
  25  Prefactor     1.0112        .18952        .50679E-06    .50712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37362
  Prefactor  = 40.1019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.319
  norm       = 0.0001
  Prefactor  = 3.53088
  Prefactor  = 17.3422
  norm       = 0.520928
  Prefactor  = 0.0001
  norm       = 4.66015
  norm       = 0.0001
  Prefactor  = 2.78423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.95674
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.7605
  Prefactor  = 0.0001
  Prefactor  = 0.699024
  norm       = 2.67274
  Prefactor  = 0.0001
  Normalizat = 0.869507
  Prefactor  = 1.01121
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.146     FROM HESSE     STATUS=OK           431 CALLS     3332 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3736        157.68        .15835E-03   -1.5203    
   2  Prefactor     40.102        106.47        .31703E-03   -1.4441    
   3  Prefactor     .10000E-03    81.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     105.32        91.933        .39185E-04   -1.3652    
   6  norm          .10000E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5309        5.4516        .10659E-02   -1.5332    
   8  Prefactor     17.342        21.900        .96174E-04   -1.4875    
   9  norm          .52093        1.6397        .17324E-03   -1.5564    
  10  Prefactor     .10000E-03    48.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6601        1.2386        .42677E-04   -1.5276    
  12  norm          .10000E-03    3.6143        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7842        2.3089        .10104E-03   -1.5374    
  14  Prefactor     .10000E-03    104.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8274        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9567        20.649        .20283E-03   -1.5310    
  17  norm          .10000E-03    .59436        .58094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.452        .31373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.761        20.113        .76023E-04   -1.4654    
  20  Prefactor     .10000E-03    2.3595        .11622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69902        106.36        .51169E-02   -1.5541    
  22  norm          2.6727        1.7665        .81467E-04   -1.5381    
  23  Prefactor     .10000E-03    12.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86951        .17963        .22375E-03   -.97540    
  25  Prefactor     1.0112        .21900        .26371E-03   -.92357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66077e-10
Minuit parameter uncertainties:
  1  63.5915
  2  106.982
  3  2.42404e-05
  4  1.88532e-05
  5  92.0578
  6  6.6228e-06
  7  5.4524
  8  21.9102
  9  1.63987
  10  1.85498e-05
  11  1.23865
  12  8.95248e-07
  13  2.30901
  14  4.61696e-05
  15  1.15329e-07
  16  18.0874
  17  1.88773e-07
  18  4.87706e-05
  19  20.1179
  20  6.14046e-07
  21  17.2753
  22  1.76657
  23  1.44001e-07
  24  0.179753
  25  0.219189
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  3.957e+00  1.809e+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.011e+00  2.192e-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:  8.695e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/199753/likelihoodResults_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.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) = 6043.14563778
delta logL = 0.000602979291216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6043.14546228
delta logL = 0.000778470884143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2937       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3744       1.0000          .0000       10.000    
     3 'Normalizat'    .87011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       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=   6043.145     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      243 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3235        277.41        .48606E-02    .72720E-04
   2  Index         2.3648        1.4513        .50000       -.30268E-05
   3  Normalizat    .87007        .14205E-01    .44518E-01   -.10540E-03
   4  Prefactor     1.0106        .18006E-01    .43202E-01   -.67611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32352
  Index      = 2.36478
  Normalizat = 0.870067
  Prefactor  = 1.01056
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.145     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3235        25.187        .19442E-03   -1.5292    
   2  Index         2.3648        1.8658        .69847E-02   -.55512    
   3  Normalizat    .87007        .17196        .22368E-03   -.97520    
   4  Prefactor     1.0106        .21833        .26378E-03   -.92378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0351e-11
Minuit parameter uncertainties:
  1  20.8837
  2  1.93166
  3  0.172066
  4  0.218524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199753': 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) = 6043.14544232
delta logL = 0.000798438519269

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  4.324e+00  2.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.365e+00  1.932e+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.011e+00  2.185e-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:  8.701e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/199753/cmap_HighResolution_516412801_516672001_4FGL_J1158.5+4824_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-04 17:54:41.066590', job_id='199753', GAL2='1.01', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630803281.07', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.98e-04', ts2='0.06', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1069' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:54:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 199753: <4FGL_J1158.5+4824_daily_bin1069> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1069 179.637 48.4161 516412801 516672001 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 :                                   770.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

