/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 115 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin2
RA = 179.637, Dec = 48.4161
tmin = 239846401, tmax = 240105601
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='194919', job_status='RUN', time_executed='2021-09-04 17:28:17.569996', time_epoch_executed='1630801697.57' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194919/ft1_4FGL_J1158.5+4824_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194919/ft1_4FGL_J1158.5+4824_daily_bin2.fits outfile=/scratch/kocevski/194919/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin2.fits ra=179.637 dec=48.4161 rad=12.0 tmin=239846401.0 tmax=240105601.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.45
user 1.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194919/ft1_filtered_4FGL_J1158.5+4824_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/194919/ltcube_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.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/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits
.....................!
real 13.06
user 12.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194919/ft1_filtered_4FGL_J1158.5+4824_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/194919/ltcube_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.fits outfile=/scratch/kocevski/194919/expmap_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.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/194919/ltcube_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.fits
.....................!
real 191.33
user 185.68
sys 5.28

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/194919/ft1_filtered_4FGL_J1158.5+4824_daily_bin2.fits scfile=/scratch/kocevski/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits outfile=/scratch/kocevski/194919/cmap_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194919/ft1_filtered_4FGL_J1158.5+4824_daily_bin2.fits scfile=/scratch/kocevski/194919/ft2_4FGL_J1158.5+4824_daily_bin2.fits outfile=/scratch/kocevski/194919/cmap_HighResolution_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.12       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.72       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.5385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40236       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0894       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.447       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80727       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=   4442.837     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2884 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.12        105.85       -.29210E-05    .13716E-04
   2  Prefactor     .10000E-03    117.35       -.18964E-04** at limit **
   3  Prefactor     105.72        118.72       -.57442E-06   -.29401E-05
   4  Prefactor     .10000E-03    40.203       -.16055E-04** at limit **
   5  Prefactor     .10000E-03    27.319       -.25010E-04** at limit **
   6  norm          7.5298        38.776       -.10150E-04   -.73750E-05
   7  Prefactor     .10000E-03    2.4134        .87328E-07** at limit **
   8  Prefactor     .10000E-03    12.470        .66705E-06** at limit **
   9  norm          .10000E-03    1.4003        .26519E-06** at limit **
  10  Prefactor     .10000E-03    45.308        .31204E-04** at limit **
  11  norm          .40165        .94953       -.10543E-06   -.22393E-02
  12  norm          .10000E-03    3.7405        .61394E-07** at limit **
  13  Prefactor     2.4180        2.3750       -.41863E-07   -.10612E-03
  14  Prefactor     5.0895        53.016        .32387E-06   -.33955E-04
  15  norm          4.1723        9.4711       -.59434E-06   -.17777E-03
  16  Prefactor     .10000E-03    13.862       -.47242E-06** at limit **
  17  norm          .10000E-03    1.5310       -.32422E-06** at limit **
  18  norm          1.8362        12.676        .40573E-05   -.52378E-03
  19  Prefactor     7.7963        26.259        .52458E-05   -.69015E-04
  20  Prefactor     .10000E-03    5.9463        .64468E-07** at limit **
  21  Prefactor     35.447        30.425       -.12241E-05   -.34100E-04
  22  norm          .10000E-03    1.7482       -.31144E-06** at limit **
  23  Prefactor     .10000E-03    24.552        .19794E-04** at limit **
  24  Normalizat    1.0843        .17897       -.23000E-06   -.10152E-03
  25  Prefactor     .80740        .21468       -.49015E-07   -.93968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.119
  Prefactor  = 0.0001
  Prefactor  = 105.717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.52982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.401651
  norm       = 0.0001
  Prefactor  = 2.41801
  Prefactor  = 5.08949
  norm       = 4.17226
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.83625
  Prefactor  = 7.79628
  Prefactor  = 0.0001
  Prefactor  = 35.4474
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08428
  Prefactor  = 0.807402
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.837     FROM HESSE     STATUS=OK           419 CALLS     3303 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.12        105.95        .35431E-04   -1.3430    
   2  Prefactor     .10000E-03    117.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     105.72        118.76        .39111E-04   -1.3648    
   4  Prefactor     .10000E-03    40.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.5298        38.915        .14607E-03   -1.5159    
   7  Prefactor     .10000E-03    2.4181        .10111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4421        .15398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40165        .91911        .90105E-04   -1.5581    
  12  norm          .10000E-03    3.7411        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4180        2.3660        .98652E-04   -1.5397    
  14  Prefactor     5.0895        51.298        .17823E-03   -1.5257    
  15  norm          4.1723        9.4752        .19729E-03   -1.5299    
  16  Prefactor     .10000E-03    13.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5560        .80441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8362        11.286        .30733E-03   -1.5437    
  19  Prefactor     7.7963        25.246        .14375E-03   -1.5149    
  20  Prefactor     .10000E-03    6.0236        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.447        30.464        .67311E-04   -1.4517    
  22  norm          .10000E-03    1.8018        .17205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0843        .20763        .20835E-03   -.90258    
  25  Prefactor     .80740        .24862        .28959E-03   -.99456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08702e-09
Minuit parameter uncertainties:
  1  106.102
  2  3.58819e-05
  3  119.026
  4  4.13882e-05
  5  7.35093e-06
  6  34.2707
  7  1.6172e-06
  8  3.79696e-06
  9  1.82683e-06
  10  8.17468e-05
  11  0.919147
  12  6.44704e-07
  13  2.36612
  14  32.3516
  15  9.47864
  16  1.13156e-05
  17  2.35457e-06
  18  9.10684
  19  25.281
  20  8.77483e-07
  21  30.4772
  22  9.72321e-07
  23  1.30374e-06
  24  0.207783
  25  0.248963
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.132e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.074e-01  2.490e-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:  1.084e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/194919/likelihoodResults_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.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) = 4442.83700375
delta logL = -0.000340975842846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4442.83666503
delta logL = -2.26495831157e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14316E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80707       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=   4442.837     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10611E-03    13.106        .18142E-01** at limit **
   2  Index         2.2740        6.1322        .50000        .14951E-04
   3  Normalizat    1.0843        .38918E-02    .20835E-03   -.24147E-03
   4  Prefactor     .80740        .47557E-02    .28959E-03   -.37526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106112
  Index      = 2.27402
  Normalizat = 1.08428
  Prefactor  = 0.807398
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.837     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10611E-03    581.55        .53636E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2740        5.2739        .50000       -.57662    
   3  Normalizat    1.0843        .26662E-01    .41669E-04   -.90258    
   4  Prefactor     .80740        .32580E-01    .57918E-04   -.99456    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.55965e-08
Minuit parameter uncertainties:
  1  0.120426
  2  896.008
  3  0.0266628
  4  0.0325813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194919': 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) = 4442.83666221
delta logL = 5.58068677492e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.061e-04  1.204e-01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.274e+00  8.960e+02  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.074e-01  3.258e-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:  1.084e+00  2.666e-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/194919/cmap_HighResolution_239846401_240105601_4FGL_J1158.5+4824_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-04 17:38:47.678243', job_id='194919', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630802327.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 194919: <4FGL_J1158.5+4824_daily_bin2> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin2> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:26:12 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:26:14 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:14 2021
Terminated at Sat Sep  4 17:38:48 2021
Results reported at Sat Sep  4 17:38:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin2 179.637 48.4161 239846401 240105601 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 :                                   631.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            756 sec.

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

