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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin830
RA = 179.637, Dec = 48.4161
tmin = 454464001, tmax = 454723201
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='198064', job_status='RUN', time_executed='2021-09-04 17:37:05.513360', time_epoch_executed='1630802225.51' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198064/ft1_4FGL_J1158.5+4824_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198064/ft1_4FGL_J1158.5+4824_daily_bin830.fits outfile=/scratch/kocevski/198064/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin830.fits ra=179.637 dec=48.4161 rad=12.0 tmin=454464001.0 tmax=454723201.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 4.11
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198064/ft1_filtered_4FGL_J1158.5+4824_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/198064/ltcube_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.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/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits
.....................!
real 12.32
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198064/ft1_filtered_4FGL_J1158.5+4824_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/198064/ltcube_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.fits outfile=/scratch/kocevski/198064/expmap_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.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/198064/ltcube_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.fits
.....................!
real 190.00
user 185.55
sys 4.02

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/198064/ft1_filtered_4FGL_J1158.5+4824_daily_bin830.fits scfile=/scratch/kocevski/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits outfile=/scratch/kocevski/198064/cmap_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198064/ft1_filtered_4FGL_J1158.5+4824_daily_bin830.fits scfile=/scratch/kocevski/198064/ft2_4FGL_J1158.5+4824_daily_bin830.fits outfile=/scratch/kocevski/198064/cmap_HighResolution_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.50       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.4719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9308       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8057       1.0000         .10000E-03   10000.    
    17 'norm      '    .93629       1.0000         .10000E-03   10000.    
    18 'norm      '    .85603E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.073       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.059       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0511       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5883.442     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     3209 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    19.911       -.20939E-05** at limit **
   2  Prefactor     .10066E-03    29.122       -.41104E-06** at limit **
   3  Prefactor     100.51        1.2163        .78379E-08   -.11494E-02
   4  Prefactor     .10001E-03    37.997       -.12076E-05** at limit **
   5  Prefactor     .10055E-03    68.126        .18347E-06** at limit **
   6  norm          .10001E-03    10.202       -.93647E-06** at limit **
   7  Prefactor     .10000E-03    8.0810       -.33423E-06** at limit **
   8  Prefactor     .10001E-03    23.359        .15778E-05** at limit **
   9  norm          7.4731        3.8436        .15277E-06    .17268E-04
  10  Prefactor     .10033E-03    28.905        .21980E-06** at limit **
  11  norm          1.9311        1.0563        .25110E-06    .21054E-03
  12  norm          7.5522        7.3847        .47538E-06   -.53984E-04
  13  Prefactor     3.5937        3.4265       -.11703E-06    .83502E-04
  14  Prefactor     .10001E-03    11.220       -.71994E-06** at limit **
  15  norm          .10000E-03    6.4051       -.25840E-06** at limit **
  16  Prefactor     2.8052        6.4581        .97135E-07   -.12846E-02
  17  norm          .93535        1.9643        .19585E-07   -.12207E-04
  18  norm          .26205        76.412        .28505E-05   -.95094E-04
  19  Prefactor     46.565        34.003       -.42370E-06   -.68433E-03
  20  Prefactor     14.061        8.4126       -.30340E-06   -.94937E-03
  21  Prefactor     2.0939        26.078        .27915E-06   -.50038E-03
  22  norm          1.9920        1.5375        .43922E-07    .10363E-04
  23  Prefactor     .10000E-03    17.060        .12826E-05** at limit **
  24  Normalizat    1.0901        .20268       -.84740E-06   -.24441E-04
  25  Prefactor     .83670        .23780        .25366E-06   -.12244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.000100656
  Prefactor  = 100.51
  Prefactor  = 0.000100012
  Prefactor  = 0.00010055
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 7.47307
  Prefactor  = 0.000100326
  norm       = 1.93111
  norm       = 7.55216
  Prefactor  = 3.59371
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 2.80516
  norm       = 0.93535
  norm       = 0.262048
  Prefactor  = 46.5653
  Prefactor  = 14.0608
  Prefactor  = 2.09388
  norm       = 1.99201
  Prefactor  = 0.0001
  Normalizat = 1.09012
  Prefactor  = 0.836702
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.442     FROM HESSE     STATUS=OK           485 CALLS     3694 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    20.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10066E-03    52.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.51        91.175        .10026E-02   -1.3700    
   4  Prefactor     .10001E-03    38.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10055E-03    98.632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    21.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    23.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4731        3.8493        .36680E-02   -1.5161    
  10  Prefactor     .10033E-03    57.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9311        1.0573        .74728E-03   -1.5430    
  12  norm          7.5522        7.3851        .36485E-02   -1.5158    
  13  Prefactor     3.5937        4.3196        .53288E-02   -1.5329    
  14  Prefactor     .10001E-03    21.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9768        .47911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8052        76.657        .60715E-02   -1.5373    
  17  norm          .93535        1.9938        .12939E-01   -1.5515    
  18  norm          .26205        9.7052        .69464E-01   -1.5606    
  19  Prefactor     46.565        35.294        .14610E-02   -1.4342    
  20  Prefactor     14.061        8.4544        .26706E-02   -1.4958    
  21  Prefactor     2.0939        70.856        .72160E-02   -1.5419    
  22  norm          1.9920        1.5354        .73383E-02   -1.5426    
  23  Prefactor     .10000E-03    17.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0901        .17475        .38412E-01   -.90070    
  25  Prefactor     .83670        .20299        .68198E-01   -.98389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63095e-08
Minuit parameter uncertainties:
  1  0.000897912
  2  0.0117823
  3  91.3027
  4  0.00137558
  5  0.0147598
  6  0.0010025
  7  5.51203e-06
  8  0.00105342
  9  3.84944
  10  0.00864162
  11  1.0573
  12  7.38599
  13  4.31994
  14  0.00087573
  15  2.84557e-06
  16  29.3695
  17  1.99392
  18  3.18945
  19  35.3095
  20  8.4551
  21  24.3918
  22  1.53541
  23  5.58144e-06
  24  0.174838
  25  0.20317
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.805e+00  2.937e+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.367e-01  2.032e-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.090e+00  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198064/likelihoodResults_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.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) = 5883.27475682
delta logL = 0.16706185335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.02715645
delta logL = 0.414662218815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6503       1.0000          .0000       10.000    
     3 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87430       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=   5883.027     FROM MIGRAD    STATUS=CONVERGED    277 CALLS      589 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .32591E-02    .38553E-03** at limit **
   2  Index         8.6501        2.8056        .26960        .10615E-03
   3  Normalizat    1.0485        .32368E-01    .40690E-01   -.26255E-03
   4  Prefactor     .87386        .39450E-01    .66903E-01   -.21929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.65014
  Normalizat = 1.04853
  Prefactor  = 0.873856
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.027     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      628 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30548E-01    .19043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6501        9.2392        .97343E-02    .81836    
   3  Normalizat    1.0485        .80728E-01    .22362E-03   -.91422    
   4  Prefactor     .87386        .98049E-01    .29596E-03   -.97061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9407e-09
Minuit parameter uncertainties:
  1  8.96504e-08
  2  7.26591
  3  0.0807372
  4  0.0980684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198064': 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) = 5883.02715136
delta logL = 0.414667311631

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.965e-08  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  8.650e+00  7.266e+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.739e-01  9.807e-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.049e+00  8.074e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/198064/cmap_HighResolution_454464001_454723201_4FGL_J1158.5+4824_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-04 17:50:41.609702', job_id='198064', GAL2='0.87', fit_tolerance='1e-08', EG2='1.05', EG='1.09', time_epoch_completed='1630803041.61', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.15e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='830' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 198064: <4FGL_J1158.5+4824_daily_bin830> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin830> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:43 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36:45 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:36:45 2021
Terminated at Sat Sep  4 17:50:42 2021
Results reported at Sat Sep  4 17:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin830 179.637 48.4161 454464001 454723201 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 :                                   813.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

