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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin21
RA = 179.637, Dec = 48.4161
tmin = 244771201, tmax = 245030401
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='194938', job_status='RUN', time_executed='2021-09-04 17:28:38.919758', time_epoch_executed='1630801718.92' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194938/ft1_4FGL_J1158.5+4824_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194938/ft2_4FGL_J1158.5+4824_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194938/ft1_4FGL_J1158.5+4824_daily_bin21.fits outfile=/scratch/kocevski/194938/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin21.fits ra=179.637 dec=48.4161 rad=12.0 tmin=244771201.0 tmax=245030401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.45
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194938/ft1_filtered_4FGL_J1158.5+4824_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/194938/ft2_4FGL_J1158.5+4824_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/194938/ltcube_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.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/194938/ft2_4FGL_J1158.5+4824_daily_bin21.fits
.....................!
real 12.71
user 12.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194938/ft1_filtered_4FGL_J1158.5+4824_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/194938/ft2_4FGL_J1158.5+4824_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/194938/ltcube_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.fits outfile=/scratch/kocevski/194938/expmap_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.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/194938/ltcube_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.fits
.....................!
real 190.36
user 184.86
sys 5.03

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/194938/ft1_filtered_4FGL_J1158.5+4824_daily_bin21.fits scfile=/scratch/kocevski/194938/ft2_4FGL_J1158.5+4824_daily_bin21.fits outfile=/scratch/kocevski/194938/cmap_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.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.52
user 0.36
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11251       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2136       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3024       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.180       1.0000         .10000E-03   10000.    
    22 'norm      '    .80137       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.540       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81642       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=   4195.654     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3589 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9155        949.50       -.53969E-04   -.38949E-04
   2  Prefactor     .10001E-03    186.82       -.80612E-05** at limit **
   3  Prefactor     .10000E-03    39.654        .16772E-06** at limit **
   4  Prefactor     26.297        156.49       -.73913E-05   -.73914E-04
   5  Prefactor     .10000E-03    102.98       -.11571E-05** at limit **
   6  norm          .10000E-03    20.383       -.23867E-06** at limit **
   7  Prefactor     6.5683        9.6734       -.13377E-05   -.13109E-03
   8  Prefactor     .10000E-03    28.976       -.37194E-08** at limit **
   9  norm          .10000E-03    1.1995        .39161E-06** at limit **
  10  Prefactor     .10000E-03    20.020        .56463E-06** at limit **
  11  norm          .11340        .64895        .14328E-06   -.41542E-03
  12  norm          .10000E-03    4.0208        .59906E-07** at limit **
  13  Prefactor     .10000E-03    1.4814        .36911E-06** at limit **
  14  Prefactor     .10000E-03    19.859        .31502E-06** at limit **
  15  norm          .10000E-03    2.5146        .80608E-07** at limit **
  16  Prefactor     .10000E-03    15.700        .11101E-05** at limit **
  17  norm          2.2142        2.8580       -.26823E-06    .93730E-04
  18  norm          .10000E-03    2.1330        .22907E-06** at limit **
  19  Prefactor     .10000E-03    9.8177        .56921E-06** at limit **
  20  Prefactor     6.3031        9.1369       -.28288E-06   -.32386E-04
  21  Prefactor     15.181        19.843       -.60771E-06   -.29574E-04
  22  norm          .80095        2.5363        .18659E-05    .47542E-03
  23  Prefactor     35.542        52.122       -.42408E-06   -.50647E-06
  24  Normalizat    1.1633        .23163        .14033E-04   -.47348E-03
  25  Prefactor     .81685        .26312       -.19803E-04   -.13299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91549
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 26.297
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.56831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.1134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.30305
  Prefactor  = 15.181
  norm       = 0.800954
  Prefactor  = 35.5424
  Normalizat = 1.16326
  Prefactor  = 0.816848
 **********
 **   18 **HESSE 
 **********

 FCN=   4195.654     FROM HESSE     STATUS=OK           419 CALLS     4008 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9155        947.37        .15407E-03   -1.5182    
   2  Prefactor     .10001E-03    187.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.297        158.65        .38751E-03   -1.4682    
   5  Prefactor     .10000E-03    103.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5683        9.6537        .15667E-03   -1.5195    
   8  Prefactor     .10000E-03    29.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2244        .69284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11340        1.1467        .99209E-03   -1.5641    
  12  norm          .10000E-03    4.0248        .12684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4979        .76983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5163        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2142        2.8451        .11740E-03   -1.5410    
  18  norm          .10000E-03    2.1353        .92397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3031        9.1259        .15989E-03   -1.5206    
  21  Prefactor     15.181        19.840        .10280E-03   -1.4929    
  22  norm          .80095        2.5222        .17626E-03   -1.5529    
  23  Prefactor     35.542        52.117        .67223E-04   -1.4515    
  24  Normalizat    1.1633        .23172        .20733E-03   -.87746    
  25  Prefactor     .81685        .26432        .29267E-03   -.99110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49972e-08
Minuit parameter uncertainties:
  1  164.615
  2  0.00200064
  3  9.25624e-06
  4  129.697
  5  0.000295013
  6  7.40482e-05
  7  9.65597
  8  1.09378e-05
  9  8.31631e-06
  10  3.83887e-05
  11  0.720898
  12  3.66263e-06
  13  7.50178e-06
  14  6.54928e-05
  15  1.53753e-06
  16  9.57482e-05
  17  2.84529
  18  7.2631e-06
  19  3.53768e-05
  20  9.12789
  21  19.8487
  22  2.52255
  23  52.1837
  24  0.231927
  25  0.264733
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.168e-01  2.647e-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.163e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/194938/likelihoodResults_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.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) = 4195.65470082
delta logL = -0.000301167876387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4195.65440092
delta logL = -1.2680193322e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7328       1.0000          .0000       10.000    
     3 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81685       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=   4195.654     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      283 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10285E-03    6.0872        .18142E-01** at limit **
   2  Index         2.6536        5.4216        .50000        .23949E-04
   3  Normalizat    1.1633        .33079E-02    .20732E-03   -.11625E-04
   4  Prefactor     .81684        .40009E-02    .29269E-03   -.99048E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102854
  Index      = 2.65355
  Normalizat = 1.16326
  Prefactor  = 0.816844
 **********
 **   18 **HESSE 
 **********

 FCN=   4195.654     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10285E-03    286.16        .44130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6536        8.5822        .50000       -.48849    
   3  Normalizat    1.1633        .22897E-01    .82928E-05   -.87746    
   4  Prefactor     .81684        .27693E-01    .11708E-04   -.99110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74592e-08
Minuit parameter uncertainties:
  1  0.0574355
  2  433.579
  3  0.022897
  4  0.0276937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194938': 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) = 4195.65440056
delta logL = -9.11117240321e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.168e-01  2.769e-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.163e+00  2.290e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.637 48.416

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/194938/cmap_HighResolution_244771201_245030401_4FGL_J1158.5+4824_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-04 17:39:35.485894', job_id='194938', GAL2='0.82', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630802375.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-9.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='21' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 194938: <4FGL_J1158.5+4824_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin21 179.637 48.4161 244771201 245030401 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 :                                   657.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

