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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1280
RA = 179.637, Dec = 48.4161
tmin = 571104001, tmax = 571363201
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='201377', job_status='RUN', time_executed='2021-09-04 17:46:37.341843', time_epoch_executed='1630802797.34' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201377/ft1_4FGL_J1158.5+4824_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201377/ft2_4FGL_J1158.5+4824_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201377/ft1_4FGL_J1158.5+4824_daily_bin1280.fits outfile=/scratch/kocevski/201377/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1280.fits ra=179.637 dec=48.4161 rad=12.0 tmin=571104001.0 tmax=571363201.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 2.95
user 2.73
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201377/ft1_filtered_4FGL_J1158.5+4824_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/201377/ft2_4FGL_J1158.5+4824_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/201377/ltcube_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.fits outfile=/scratch/kocevski/201377/expmap_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.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/201377/ltcube_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.fits
.....................!
real 189.98
user 184.46
sys 5.19

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/201377/ft1_filtered_4FGL_J1158.5+4824_daily_bin1280.fits scfile=/scratch/kocevski/201377/ft2_4FGL_J1158.5+4824_daily_bin1280.fits outfile=/scratch/kocevski/201377/cmap_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201377/ft1_filtered_4FGL_J1158.5+4824_daily_bin1280.fits scfile=/scratch/kocevski/201377/ft2_4FGL_J1158.5+4824_daily_bin1280.fits outfile=/scratch/kocevski/201377/cmap_HighResolution_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.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.67
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25343E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    97.700       1.0000         .10000E-03   10000.    
     6 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.067       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1509       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.556       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2386       1.0000         .10000E-03   10000.    
    18 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.965       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94197       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1361       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=   4043.225     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2853 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    302.38       -.62758E-05** at limit **
   2  Prefactor     .10000E-03    158.59       -.58632E-06** at limit **
   3  Prefactor     .10000E-03    188.94       -.36475E-06** at limit **
   4  Prefactor     46.113        122.70       -.38810E-05   -.12585E-04
   5  Prefactor     97.035        195.93       -.16704E-05   -.21778E-04
   6  norm          .10000E-03    43.482       -.11562E-05** at limit **
   7  Prefactor     5.0069        9.2015        .43671E-05   -.58105E-05
   8  Prefactor     .10000E-03    31.199       -.11526E-06** at limit **
   9  norm          .10000E-03    2.4965        .44166E-07** at limit **
  10  Prefactor     58.049        79.001        .21145E-06   -.41206E-05
  11  norm          1.1509        1.1409        .14773E-07   -.64613E-05
  12  norm          .10000E-03    4.8009        .14225E-07** at limit **
  13  Prefactor     1.2347        5.4542       -.35399E-06   -.53584E-04
  14  Prefactor     .10000E-03    20.336        .68607E-07** at limit **
  15  norm          .10000E-03    2.1389        .84971E-07** at limit **
  16  Prefactor     23.488        36.007        .65161E-06   -.12267E-04
  17  norm          1.2395        3.1618        .87400E-06   -.58934E-04
  18  norm          .10000E-03    9.4113        .13879E-05** at limit **
  19  Prefactor     .10000E-03    6.8498        .31983E-06** at limit **
  20  Prefactor     12.966        8.5923       -.78183E-07   -.27780E-04
  21  Prefactor     .10000E-03    7.3707        .50841E-06** at limit **
  22  norm          5.3077        2.2597        .11366E-07   -.51019E-04
  23  Prefactor     .10000E-03    41.135        .74726E-06** at limit **
  24  Normalizat    .94172        .22594        .19791E-05   -.18226E-03
  25  Prefactor     1.1362        .26309       -.41785E-05    .11488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.1132
  Prefactor  = 97.0353
  norm       = 0.0001
  Prefactor  = 5.00687
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.0489
  norm       = 1.15086
  norm       = 0.0001
  Prefactor  = 1.23466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.4882
  norm       = 1.23947
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9658
  Prefactor  = 0.0001
  norm       = 5.3077
  Prefactor  = 0.0001
  Normalizat = 0.941716
  Prefactor  = 1.13624
 **********
 **   18 **HESSE 
 **********

 FCN=   4043.225     FROM HESSE     STATUS=OK           421 CALLS     3274 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.72        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    158.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    188.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.113        123.34        .29464E-03   -1.4349    
   5  Prefactor     97.035        196.72        .20334E-03   -1.3735    
   6  norm          .10000E-03    43.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0069        9.3370        .89876E-03   -1.5260    
   8  Prefactor     .10000E-03    31.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5094        .98098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.049        78.709        .52648E-04   -1.4183    
  11  norm          1.1509        1.1551        .62953E-04   -1.5493    
  12  norm          .10000E-03    4.8013        .13607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2347        4.9316        .23531E-03   -1.5486    
  14  Prefactor     .10000E-03    20.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1409        .90798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.488        34.489        .82531E-04   -1.4738    
  17  norm          1.2395        3.1503        .16048E-03   -1.5485    
  18  norm          .10000E-03    9.7729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8554        .16255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.966        8.6021        .11124E-03   -1.4988    
  21  Prefactor     .10000E-03    7.4027        .16864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3077        2.2597        .60354E-04   -1.5247    
  23  Prefactor     .10000E-03    41.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94172        .26191        .24643E-03   -.95009    
  25  Prefactor     1.1362        .30208        .27899E-03   -.88316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4223e-10
Minuit parameter uncertainties:
  1  3.99241e-05
  2  0.000129082
  3  8.27732e-05
  4  124.036
  5  198.069
  6  9.4451e-06
  7  9.33974
  8  0.000103109
  9  2.12404e-06
  10  78.8505
  11  1.15515
  12  8.94026e-07
  13  4.93327
  14  1.99009e-06
  15  4.39542e-06
  16  34.5185
  17  3.1507
  18  1.23259e-05
  19  1.69591e-06
  20  8.60296
  21  3.2221e-06
  22  2.25976
  23  2.49203e-05
  24  0.262268
  25  0.302535
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.349e+01  3.452e+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.136e+00  3.025e-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.417e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201377/likelihoodResults_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.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) = 4043.11942988
delta logL = 0.105826210847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4043.11494755
delta logL = 0.110308537775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.946       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9649       1.0000          .0000       10.000    
     3 'Normalizat'    .92463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1523       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=   4043.115     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      305 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.965        36.108        .11133E-03   -.24764E-04
   2  Index         2.9651        1.5263        .69308E-02    .51761E-04
   3  Normalizat    .92429        .24560        .24846E-03   -.61199E-04
   4  Prefactor     1.1527        .30003        .27720E-03    .86168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9648
  Index      = 2.96511
  Normalizat = 0.924287
  Prefactor  = 1.1527
 **********
 **   18 **HESSE 
 **********

 FCN=   4043.115     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.965        27.860        .44531E-05   -1.4988    
   2  Index         2.9651        1.1851        .27723E-03   -.41914    
   3  Normalizat    .92429        .24540        .99384E-05   -.95612    
   4  Prefactor     1.1527        .29925        .11088E-04   -.87800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35055e-10
Minuit parameter uncertainties:
  1  27.8878
  2  1.19887
  3  0.245703
  4  0.299686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201377': 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) = 4043.11494551
delta logL = 0.110310577261

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.296e+01  2.789e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.965e+00  1.199e+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.153e+00  2.997e-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.243e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 179.637 48.416
Photon Index (Free Index): 2.97 +/- 1.20
Photon Flux (Free Index): 5.18e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.26e-05

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/201377/cmap_HighResolution_571104001_571363201_4FGL_J1158.5+4824_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='1.10e-01', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-09-04 17:56:52.397553', photon_index_error2='1.20', photon_index2='2.97', ts='0.78', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.26e-05', EG='0.94', time_epoch_completed='1630803412.4', return_code='0', job_id='201377', GAL2='1.15', EG2='0.92', return_code2='0', photon_flux_error2='6.10e-08', ts2='1.01', photon_index='2.44' WHERE bin_id='1280' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 201377: <4FGL_J1158.5+4824_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1280> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 17:46:25 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:46:27 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:46:27 2021
Terminated at Sat Sep  4 17:56:53 2021
Results reported at Sat Sep  4 17:56:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1280 179.637 48.4161 571104001 571363201 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 :                                   610.46 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            628 sec.

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

