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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin71
RA = 179.637, Dec = 48.4161
tmin = 257731201, tmax = 257990401
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='194988', job_status='RUN', time_executed='2021-09-04 17:30:10.240171', time_epoch_executed='1630801810.24' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194988/ft1_4FGL_J1158.5+4824_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194988/ft1_4FGL_J1158.5+4824_daily_bin71.fits outfile=/scratch/kocevski/194988/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin71.fits ra=179.637 dec=48.4161 rad=12.0 tmin=257731201.0 tmax=257990401.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.16
user 0.94
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194988/ft1_filtered_4FGL_J1158.5+4824_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/194988/ltcube_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.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/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits
.....................!
real 9.49
user 9.20
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194988/ft1_filtered_4FGL_J1158.5+4824_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/194988/ltcube_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.fits outfile=/scratch/kocevski/194988/expmap_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.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/194988/ltcube_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.fits
.....................!
real 145.85
user 142.17
sys 3.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/194988/ft1_filtered_4FGL_J1158.5+4824_daily_bin71.fits scfile=/scratch/kocevski/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits outfile=/scratch/kocevski/194988/cmap_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194988/ft1_filtered_4FGL_J1158.5+4824_daily_bin71.fits scfile=/scratch/kocevski/194988/ft2_4FGL_J1158.5+4824_daily_bin71.fits outfile=/scratch/kocevski/194988/cmap_HighResolution_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    276.55       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23889E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62575E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.973       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.5321       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85534       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=   5673.012     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2972 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.391        .43007E-04** at limit **
   2  Prefactor     .10000E-03    64.353       -.17495E-04** at limit **
   3  Prefactor     276.59        167.06        .23711E-04   -.60370E-05
   4  Prefactor     .10000E-03    100.07        .51352E-04** at limit **
   5  Prefactor     .10000E-03    36.769        .15287E-04** at limit **
   6  norm          .10000E-03    36.909        .12573E-04** at limit **
   7  Prefactor     .10000E-03    2.9148       -.10344E-06** at limit **
   8  Prefactor     .10001E-03    153.47       -.78571E-04** at limit **
   9  norm          .10000E-03    1.2252        .12343E-06** at limit **
  10  Prefactor     .10000E-03    44.054       -.41931E-04** at limit **
  11  norm          .10000E-03    .31498        .13944E-06** at limit **
  12  norm          .10000E-03    9.0638        .57391E-06** at limit **
  13  Prefactor     .13822E-02    1.1425        .55595E-06** at limit **
  14  Prefactor     .10000E-03    13.313        .13153E-05** at limit **
  15  norm          .10000E-03    11.317       -.14393E-06** at limit **
  16  Prefactor     18.974        14.739        .72433E-08   -.69634E-04
  17  norm          .10000E-03    .74993       -.34290E-07** at limit **
  18  norm          14.285        8.3854        .51497E-07   -.70662E-04
  19  Prefactor     19.111        24.397        .23905E-06   -.26822E-04
  20  Prefactor     .10000E-03    1.8563        .21023E-06** at limit **
  21  Prefactor     .10000E-03    7.9887        .33630E-06** at limit **
  22  norm          4.5321        2.2796        .75897E-07   -.54936E-05
  23  Prefactor     .10000E-03    19.742       -.27242E-05** at limit **
  24  Normalizat    1.1270        .16484       -.18400E-05    .19082E-03
  25  Prefactor     .85554        .20091       -.18221E-06   -.20241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 276.59
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00138222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9745
  norm       = 0.0001
  norm       = 14.285
  Prefactor  = 19.1108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.53215
  Prefactor  = 0.0001
  Normalizat = 1.12699
  Prefactor  = 0.855536
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.012     FROM HESSE     STATUS=OK           425 CALLS     3397 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     276.59        167.21        .12196E-03   -1.2366    
   4  Prefactor     .10000E-03    100.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    37.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9309        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    154.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0095        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46770        .82077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.2308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13822E-02    1.6085        .30542E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.974        14.736        .91952E-04   -1.4836    
  17  norm          .10000E-03    .76000        .63659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.285        8.3772        .10598E-03   -1.4952    
  19  Prefactor     19.111        24.390        .91626E-04   -1.4833    
  20  Prefactor     .10000E-03    1.8635        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5321        2.2796        .78435E-04   -1.5282    
  23  Prefactor     .10000E-03    19.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1270        .19172        .21187E-03   -.88890    
  25  Prefactor     .85554        .23378        .29594E-03   -.97713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61401e-10
Minuit parameter uncertainties:
  1  5.64378e-05
  2  1.08308e-05
  3  167.504
  4  6.77027e-05
  5  4.87626e-06
  6  8.58244e-06
  7  1.97898e-05
  8  0.00238117
  9  1.20388e-05
  10  0.000357023
  11  8.92931e-06
  12  1.7937e-05
  13  0.0908306
  14  8.72765e-06
  15  0.000138039
  16  14.7386
  17  3.74322e-06
  18  8.37793
  19  24.4031
  20  1.93396e-06
  21  8.59872e-06
  22  2.27965
  23  7.426e-06
  24  0.191843
  25  0.234054
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.897e+01  1.474e+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:  8.555e-01  2.341e-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.127e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.23
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 9.90e-06 +/- 7.69e-06

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) = 5670.00928343
delta logL = 3.00273376832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5669.38908487
delta logL = 3.62293233377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94697       1.0000         .10000E-03   10000.    
     2 'Index     '    .32802       1.0000          .0000       10.000    
     3 'Normalizat'    1.1425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86010       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=   5669.389     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94632        1.2534        .12977E-01   -.33657E-03
   2  Index         .32755        .44544        .26177        .77694E-05
   3  Normalizat    1.1424        .16187        .36485E-01   -.35573E-04
   4  Prefactor     .86031        .20093        .66781E-01   -.74165E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946317
  Index      = 0.327548
  Normalizat = 1.14242
  Prefactor  = 0.860313
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.389     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94632        3.0090        .66477E-03   -1.5513    
   2  Index         .32755        .85175        .13049E-01   -1.2068    
   3  Normalizat    1.1424        .18879        .21062E-03   -.88401    
   4  Prefactor     .86031        .23400        .29542E-03   -.97542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84975e-10
Minuit parameter uncertainties:
  1  3.00944
  2  0.888149
  3  0.188899
  4  0.234268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194988': 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) = 5669.38908364
delta logL = 3.62293356379

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  9.463e-01  3.009e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.275e-01  8.881e-01  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.603e-01  2.343e-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.142e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.47
Ra Dec: 179.637 48.416
Photon Index (Free Index): 0.33 +/- 0.89
Photon Flux (Free Index): 3.03e-09 +/- 3.06e-09
Energy Flux (Free Index): 1.23e-04 +/- 1.43e-04

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/194988/cmap_HighResolution_257731201_257990401_4FGL_J1158.5+4824_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='1.23e-04', photon_flux_error='2.48e-08', dlogl='3.62e+00', energy_flux='9.90e-06', photon_flux2='3.03e-09', job_status='DONE', time_completed='2021-09-04 17:38:30.260058', photon_index_error2='0.89', photon_index2='0.33', ts='5.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.43e-04', EG='1.13', time_epoch_completed='1630802310.26', return_code='0', job_id='194988', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='7.69e-06', photon_flux_error2='3.06e-09', ts2='12.47', photon_index='2.44' WHERE bin_id='71' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:38:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 194988: <4FGL_J1158.5+4824_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin71 179.637 48.4161 257731201 257990401 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 :                                   499.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

