/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 8 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 = 7421
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin406
RA = 179.637, Dec = 48.4161
tmin = 344563201, tmax = 344822401
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='196153', job_status='RUN', time_executed='2021-09-04 17:31:37.286640', time_epoch_executed='1630801897.29' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196153/ft1_4FGL_J1158.5+4824_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196153/ft2_4FGL_J1158.5+4824_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196153/ft1_4FGL_J1158.5+4824_daily_bin406.fits outfile=/scratch/kocevski/196153/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin406.fits ra=179.637 dec=48.4161 rad=12.0 tmin=344563201.0 tmax=344822401.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.45
user 3.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196153/ft1_filtered_4FGL_J1158.5+4824_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/196153/ft2_4FGL_J1158.5+4824_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/196153/ltcube_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.fits outfile=/scratch/kocevski/196153/expmap_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.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/196153/ltcube_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.fits
.....................!
real 191.62
user 186.79
sys 4.44

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/196153/ft1_filtered_4FGL_J1158.5+4824_daily_bin406.fits scfile=/scratch/kocevski/196153/ft2_4FGL_J1158.5+4824_daily_bin406.fits outfile=/scratch/kocevski/196153/cmap_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.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/196153/ft1_filtered_4FGL_J1158.5+4824_daily_bin406.fits scfile=/scratch/kocevski/196153/ft2_4FGL_J1158.5+4824_daily_bin406.fits outfile=/scratch/kocevski/196153/cmap_HighResolution_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.177       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65432E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .71615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.429       1.0000         .10000E-03   10000.    
    11 'norm      '    .60078       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.446       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2272       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2667       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.667       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1456       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.906       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95707       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0202       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=   7171.038     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2928 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5660        67.341        .13849E-06   -.12491E-05
   2  Prefactor     .10000E-03    36.049       -.13166E-06** at limit **
   3  Prefactor     .10000E-03    19.822        .99892E-08** at limit **
   4  Prefactor     .10000E-03    16.458       -.39586E-07** at limit **
   5  Prefactor     39.091        75.937       -.33404E-06   -.30402E-04
   6  norm          .10000E-03    12.400       -.80449E-07** at limit **
   7  Prefactor     .10000E-03    2.5939        .22080E-06** at limit **
   8  Prefactor     .10000E-03    36.836        .74748E-06** at limit **
   9  norm          .71753        1.7114        .23514E-06    .21141E-03
  10  Prefactor     27.372        49.483       -.67872E-06   -.52553E-04
  11  norm          .60218        1.3959        .24795E-06    .10202E-04
  12  norm          .10000E-03    2.6587        .90519E-08** at limit **
  13  Prefactor     3.1387        3.7325        .21606E-06   -.25803E-04
  14  Prefactor     15.882        43.177       -.38501E-06   -.11090E-04
  15  norm          4.6435        4.2527        .34911E-07   -.20473E-04
  16  Prefactor     14.447        22.131       -.27058E-06   -.21530E-04
  17  norm          6.2272        2.4112       -.29025E-07   -.10050E-03
  18  norm          1.3545        3.9747        .90570E-06    .51660E-05
  19  Prefactor     27.472        20.318       -.28569E-06   -.60359E-04
  20  Prefactor     1.2666        4.6007        .20631E-05   -.37174E-04
  21  Prefactor     16.662        20.945        .67017E-07    .17836E-05
  22  norm          4.1454        2.0382       -.21391E-07   -.48107E-04
  23  Prefactor     23.899        45.994        .97747E-07   -.27629E-05
  24  Normalizat    .95716        .15640        .27007E-06   -.17915E-03
  25  Prefactor     1.0202        .18685       -.93992E-06   -.65258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0913
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.717533
  Prefactor  = 27.3722
  norm       = 0.602175
  norm       = 0.0001
  Prefactor  = 3.13874
  Prefactor  = 15.8818
  norm       = 4.64352
  Prefactor  = 14.4472
  norm       = 6.22719
  norm       = 1.3545
  Prefactor  = 27.4723
  Prefactor  = 1.26662
  Prefactor  = 16.6615
  norm       = 4.14542
  Prefactor  = 23.8993
  Normalizat = 0.957161
  Prefactor  = 1.02021
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.038     FROM HESSE     STATUS=OK           439 CALLS     3367 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5660        67.348        .13694E-03   -1.5123    
   2  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.091        75.984        .64037E-04   -1.4457    
   6  norm          .10000E-03    12.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.028        .26103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .71753        1.4254        .16350E-02   -1.5539    
  10  Prefactor     27.372        46.068        .76493E-04   -1.4661    
  11  norm          .60218        1.2437        .10258E-03   -1.5553    
  12  norm          .10000E-03    2.6603        .13485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1387        3.6924        .14121E-03   -1.5354    
  14  Prefactor     15.882        41.333        .10024E-03   -1.4911    
  15  norm          4.6435        4.2503        .16239E-03   -1.5277    
  16  Prefactor     14.447        21.937        .10538E-03   -1.4948    
  17  norm          6.2272        2.4162        .77441E-04   -1.5209    
  18  norm          1.3545        3.9104        .26994E-03   -1.5475    
  19  Prefactor     27.472        20.190        .76439E-04   -1.4659    
  20  Prefactor     1.2666        4.5489        .33117E-03   -1.5483    
  21  Prefactor     16.662        20.974        .98105E-04   -1.4891    
  22  norm          4.1454        2.0379        .82129E-04   -1.5301    
  23  Prefactor     23.899        45.998        .81926E-04   -1.4730    
  24  Normalizat    .95716        .18433        .23320E-03   -.94480    
  25  Prefactor     1.0202        .21892        .28238E-03   -.92059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04059e-10
Minuit parameter uncertainties:
  1  48.1122
  2  8.93374e-05
  3  5.4834e-06
  4  1.55084e-06
  5  76.1735
  6  1.95704e-06
  7  0.000190367
  8  7.28326e-05
  9  1.42546
  10  46.1277
  11  1.2438
  12  1.09302e-07
  13  3.69271
  14  41.4075
  15  4.25061
  16  21.9488
  17  2.41623
  18  3.91117
  19  20.1948
  20  4.55016
  21  20.9835
  22  2.03791
  23  46.0664
  24  0.184451
  25  0.219115
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.445e+01  2.195e+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.020e+00  2.191e-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.572e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/196153/likelihoodResults_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.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) = 7170.60182149
delta logL = 0.435850528992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7170.59249208
delta logL = 0.445179932964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4071       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3117       1.0000          .0000       10.000    
     3 'Normalizat'    .92968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0410       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7170.592     FROM MIGRAD    STATUS=FAILED       103 CALLS      319 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3954        41.672        .79282E-03    .33886E-03
   2  Index         3.3135        2.6334        .65754E-02    .65436E-03
   3  Normalizat    .92971        .17889        .23607E-03   -.11221E-04
   4  Prefactor     1.0410        .22187        .27975E-03   -.10688E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7170.592     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      407 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3954        41.672        .22572E-03   -1.5202    
   2  Index         3.3135        2.6334        .97605E-03   -.34405    
   3  Normalizat    .92971        .17889        .23354E-03   -.95424    
   4  Prefactor     1.0410        .22187        .33803E-03   -.91374    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7170.592     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      436 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3954        12.921        .15856E-03   -.58075E-05
   2  Index         3.3135        1.0946        .13151E-02    .25369E-04
   3  Normalizat    .92971        .17728        .94427E-05   -.11317E-04
   4  Prefactor     1.0410        .21839        .11190E-04   -.10566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39541
  Index      = 3.31347
  Normalizat = 0.929714
  Prefactor  = 1.04104
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.592     FROM HESSE     STATUS=OK            25 CALLS      461 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3954        11.979        .63426E-05   -1.5202    
   2  Index         3.3135        1.0158        .26301E-03   -.34405    
   3  Normalizat    .92971        .17717        .18885E-05   -.95424    
   4  Prefactor     1.0410        .21817        .22380E-05   -.91374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33415e-13
Minuit parameter uncertainties:
  1  11.9831
  2  1.02386
  3  0.177277
  4  0.218354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196153': 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) = 7170.59248892
delta logL = 0.445183096816

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  6.395e+00  1.198e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.313e+00  1.024e+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.041e+00  2.184e-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.297e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 179.637 48.416
Photon Index (Free Index): 3.31 +/- 1.02
Photon Flux (Free Index): 4.75e-08 +/- 4.23e-08
Energy Flux (Free Index): 8.36e-06 +/- 7.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/196153/cmap_HighResolution_344563201_344822401_4FGL_J1158.5+4824_daily_bin406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', comment='SUCCESS', energy_flux2='8.36e-06', dlogl='4.45e-01', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-04 17:46:07.415879', photon_index_error2='1.02', photon_index2='3.31', ts='0.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.14e-08', energy_flux_error2='7.35e-06', EG='0.96', time_epoch_completed='1630802767.42', return_code='0', job_id='196153', GAL2='1.04', EG2='0.93', return_code2='0', photon_flux_error2='4.23e-08', ts2='1.69', photon_index='2.44' WHERE bin_id='406' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 196153: <4FGL_J1158.5+4824_daily_bin406> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin406> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:31:19 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:31:21 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:31:21 2021
Terminated at Sat Sep  4 17:46:07 2021
Results reported at Sat Sep  4 17:46:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin406 179.637 48.4161 344563201 344822401 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 :                                   868.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             367.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

