/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 208 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin24
RA = 179.637, Dec = 48.4161
tmin = 245548801, tmax = 245808001
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='194941', job_status='RUN', time_executed='2021-09-04 17:29:57.143652', time_epoch_executed='1630801797.14' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194941/ft1_4FGL_J1158.5+4824_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194941/ft2_4FGL_J1158.5+4824_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194941/ft1_4FGL_J1158.5+4824_daily_bin24.fits outfile=/scratch/kocevski/194941/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin24.fits ra=179.637 dec=48.4161 rad=12.0 tmin=245548801.0 tmax=245808001.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 1.47
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194941/ft1_filtered_4FGL_J1158.5+4824_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/194941/ft2_4FGL_J1158.5+4824_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/194941/ltcube_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.fits outfile=/scratch/kocevski/194941/expmap_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.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/194941/ltcube_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.fits
.....................!
real 191.01
user 186.31
sys 4.32

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/194941/ft1_filtered_4FGL_J1158.5+4824_daily_bin24.fits scfile=/scratch/kocevski/194941/ft2_4FGL_J1158.5+4824_daily_bin24.fits outfile=/scratch/kocevski/194941/cmap_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.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.64
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194941/ft1_filtered_4FGL_J1158.5+4824_daily_bin24.fits scfile=/scratch/kocevski/194941/ft2_4FGL_J1158.5+4824_daily_bin24.fits outfile=/scratch/kocevski/194941/cmap_HighResolution_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.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.98
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    76.433       1.0000         .10000E-03   10000.    
     6 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8971       1.0000         .10000E-03   10000.    
     9 'norm      '    .11024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12432E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.045       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.167       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7182       1.0000         .10000E-03   10000.    
    18 'norm      '    20.678       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5106       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91292       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79481       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=   5380.687     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2997 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    139.08       -.28060E-06** at limit **
   2  Prefactor     .10000E-03    82.606       -.15594E-05** at limit **
   3  Prefactor     .10000E-03    41.455       -.73495E-06** at limit **
   4  Prefactor     73.959        67.365        .51531E-06   -.88918E-05
   5  Prefactor     76.373        86.608        .29308E-05   -.19043E-04
   6  norm          .10000E-03    24.472        .42434E-07** at limit **
   7  Prefactor     15.687        10.323        .71772E-07   -.25496E-04
   8  Prefactor     9.8987        70.847        .25611E-06   -.13690E-05
   9  norm          .10000E-03    1.1201        .10011E-06** at limit **
  10  Prefactor     .10000E-03    13.969       -.29043E-07** at limit **
  11  norm          .10000E-03    .59924       -.71067E-06** at limit **
  12  norm          .10000E-03    7.9999        .12129E-06** at limit **
  13  Prefactor     .10000E-03    1.7118        .11076E-06** at limit **
  14  Prefactor     20.957        52.981       -.36624E-05    .59341E-05
  15  norm          7.2573        7.9442        .86087E-07    .14028E-06
  16  Prefactor     24.187        25.295        .17082E-06   -.60775E-04
  17  norm          1.7185        1.6159        .69624E-07    .14190E-04
  18  norm          20.680        8.6634        .38202E-07   -.45736E-04
  19  Prefactor     .10000E-03    8.8123        .74479E-07** at limit **
  20  Prefactor     .10000E-03    1.8077        .51109E-07** at limit **
  21  Prefactor     .10000E-03    4.0517        .57954E-07** at limit **
  22  norm          2.5109        2.2157        .70321E-07    .30388E-04
  23  Prefactor     .10000E-03    55.298        .20658E-05** at limit **
  24  Normalizat    .91287        .16027       -.50080E-06   -.55143E-04
  25  Prefactor     .79478        .18494       -.97738E-06   -.77415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.9586
  Prefactor  = 76.373
  norm       = 0.0001
  Prefactor  = 15.687
  Prefactor  = 9.8987
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9573
  norm       = 7.25729
  Prefactor  = 24.1867
  norm       = 1.71851
  norm       = 20.6796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51088
  Prefactor  = 0.0001
  Normalizat = 0.912871
  Prefactor  = 0.794776
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.687     FROM HESSE     STATUS=OK           429 CALLS     3426 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    139.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     73.959        67.674        .46684E-04   -1.3986    
   5  Prefactor     76.373        86.337        .22965E-03   -1.3958    
   6  norm          .10000E-03    24.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.687        10.320        .10113E-03   -1.4916    
   8  Prefactor     9.8987        69.776        .12737E-03   -1.5079    
   9  norm          .10000E-03    6.3297        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .60000        .87205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.9021        .17620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.957        52.886        .87311E-04   -1.4792    
  15  norm          7.2573        7.9179        .14890E-03   -1.5169    
  16  Prefactor     24.187        24.169        .81484E-04   -1.4724    
  17  norm          1.7185        1.6017        .87006E-04   -1.5446    
  18  norm          20.680        8.6764        .88082E-04   -1.4798    
  19  Prefactor     .10000E-03    8.8235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8169        .96330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0537        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5109        2.2075        .98953E-04   -1.5391    
  23  Prefactor     .10000E-03    55.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91287        .19024        .21302E-03   -.96009    
  25  Prefactor     .79478        .21925        .27753E-03   -.99921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20152e-10
Minuit parameter uncertainties:
  1  8.89059e-05
  2  9.64292e-05
  3  5.04911e-05
  4  67.7447
  5  86.4787
  6  3.58384e-06
  7  10.3214
  8  52.6491
  9  0.000118583
  10  1.53839e-05
  11  8.03465e-07
  12  2.22429e-06
  13  2.99744e-05
  14  53.0046
  15  7.91909
  16  24.1784
  17  1.60172
  18  8.67696
  19  1.30849e-05
  20  2.99851e-06
  21  3.63383e-06
  22  2.2076
  23  1.24681e-05
  24  0.190384
  25  0.219493
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.419e+01  2.418e+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:  7.948e-01  2.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  9.129e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.26e-05

TS (Fixed Index): 1.28
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194941/likelihoodResults_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.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) = 5380.35457211
delta logL = 0.332649136779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5380.32743405
delta logL = 0.359787201916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4954       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3687       1.0000          .0000       10.000    
     3 'Normalizat'    .86789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83469       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=   5380.327     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5017        218.65        .13753E-03    .78924E-03
   2  Index         3.3691        6.6845        .52909E-02    .18769E-03
   3  Normalizat    .86800        .22343        .21780E-03   -.53764E-03
   4  Prefactor     .83457        .27500        .27126E-03   -.14250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.50166
  Index      = 3.36905
  Normalizat = 0.867997
  Prefactor  = 0.834573
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.327     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5017        19.395        .55014E-05   -1.5125    
   2  Index         3.3691        1.2900        .21164E-03   -.33227    
   3  Normalizat    .86800        .18618        .43561E-04   -.97594    
   4  Prefactor     .83457        .22190        .10850E-04   -.98466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29396e-09
Minuit parameter uncertainties:
  1  19.4094
  2  1.3066
  3  0.186315
  4  0.222135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194941': 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) = 5380.32743187
delta logL = 0.359789377858

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  8.502e+00  1.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.369e+00  1.307e+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:  8.346e-01  2.221e-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.680e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 179.637 48.416
Photon Index (Free Index): 3.37 +/- 1.31
Photon Flux (Free Index): 6.99e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.66e-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/194941/cmap_HighResolution_245548801_245808001_4FGL_J1158.5+4824_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='1.21e-05', photon_flux_error='4.06e-08', dlogl='3.60e-01', energy_flux='1.26e-05', photon_flux2='6.99e-08', job_status='DONE', time_completed='2021-09-04 17:42:06.881046', photon_index_error2='1.31', photon_index2='3.37', ts='1.28', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.66e-06', EG='0.91', time_epoch_completed='1630802526.88', return_code='0', job_id='194941', GAL2='0.83', EG2='0.87', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.72e-08', ts2='2.06', photon_index='2.44' WHERE bin_id='24' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 194941: <4FGL_J1158.5+4824_daily_bin24> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin24> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:26:16 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:26:18 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:26:18 2021
Terminated at Sat Sep  4 17:42:07 2021
Results reported at Sat Sep  4 17:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin24 179.637 48.4161 245548801 245808001 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 :                                   725.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             279.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

