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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin650
RA = 179.637, Dec = 48.4161
tmin = 407808001, tmax = 408067201
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='197768', job_status='RUN', time_executed='2021-09-04 17:40:23.749305', time_epoch_executed='1630802423.75' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197768/ft1_4FGL_J1158.5+4824_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197768/ft1_4FGL_J1158.5+4824_daily_bin650.fits outfile=/scratch/kocevski/197768/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin650.fits ra=179.637 dec=48.4161 rad=12.0 tmin=407808001.0 tmax=408067201.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.09
user 3.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.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/197768/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/197768/ft1_filtered_4FGL_J1158.5+4824_daily_bin650.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/197768/ft1_filtered_4FGL_J1158.5+4824_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/197768/ltcube_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.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/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits
.....................!
real 12.41
user 12.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197768/ft1_filtered_4FGL_J1158.5+4824_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/197768/ltcube_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.fits outfile=/scratch/kocevski/197768/expmap_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.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/197768/ltcube_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.fits
.....................!
real 190.18
user 184.99
sys 4.83

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/197768/ft1_filtered_4FGL_J1158.5+4824_daily_bin650.fits scfile=/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits outfile=/scratch/kocevski/197768/cmap_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197768/ft1_filtered_4FGL_J1158.5+4824_daily_bin650.fits scfile=/scratch/kocevski/197768/ft2_4FGL_J1158.5+4824_daily_bin650.fits outfile=/scratch/kocevski/197768/cmap_HighResolution_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19029E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    83.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4140       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.615       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6475       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8786       1.0000         .10000E-03   10000.    
    15 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7201       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8329       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.784       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5189       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82276       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2610       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=   4158.742     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2869 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    184.90       -.54862E-05** at limit **
   2  Prefactor     .10001E-03    54.874       -.62394E-05** at limit **
   3  Prefactor     .10009E-03    334.41       -.21939E-04** at limit **
   4  Prefactor     83.918        80.345       -.34539E-05   -.13521E-03
   5  Prefactor     .10000E-03    40.875        .48939E-05** at limit **
   6  norm          .10000E-03    47.501       -.49072E-05** at limit **
   7  Prefactor     1.4197        7.2183        .11181E-05   -.14290E-03
   8  Prefactor     10.628        48.283        .74480E-06    .20497E-04
   9  norm          .10000E-03    1.5299       -.27573E-09** at limit **
  10  Prefactor     .10000E-03    24.336       -.16143E-06** at limit **
  11  norm          5.6485        1.9682       -.14037E-06    .39811E-04
  12  norm          .10000E-03    6.7275        .20125E-06** at limit **
  13  Prefactor     5.4453        4.1392       -.71667E-06   -.17020E-03
  14  Prefactor     7.9067        161.94        .10592E-04    .39372E-04
  15  norm          .10000E-03    9.4470        .10049E-06** at limit **
  16  Prefactor     2.7218        19.610        .15675E-04   -.28637E-03
  17  norm          4.8356        3.4998        .79538E-07   -.67016E-04
  18  norm          .10000E-03    3.3290       -.24848E-07** at limit **
  19  Prefactor     15.312        21.279       -.51985E-06   -.39021E-04
  20  Prefactor     .10000E-03    3.2882        .25528E-07** at limit **
  21  Prefactor     20.816        37.890        .25400E-05    .73043E-04
  22  norm          2.5192        2.3193        .10265E-08   -.80987E-05
  23  Prefactor     .10002E-03    77.759        .11607E-04** at limit **
  24  Normalizat    .82217        .21736       -.41495E-06   -.56794E-04
  25  Prefactor     1.2614        .25389       -.94479E-06   -.13338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100007
  Prefactor  = 0.000100088
  Prefactor  = 83.9183
  Prefactor  = 0.000100005
  norm       = 0.000100004
  Prefactor  = 1.41968
  Prefactor  = 10.6279
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.64848
  norm       = 0.0001
  Prefactor  = 5.44528
  Prefactor  = 7.90668
  norm       = 0.0001
  Prefactor  = 2.72177
  norm       = 4.8356
  norm       = 0.0001
  Prefactor  = 15.3121
  Prefactor  = 0.0001
  Prefactor  = 20.8164
  norm       = 2.51925
  Prefactor  = 0.000100025
  Normalizat = 0.822166
  Prefactor  = 1.26138
 **********
 **   18 **HESSE 
 **********

 FCN=   4158.742     FROM HESSE     STATUS=OK           425 CALLS     3294 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    185.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    55.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    343.88        .20273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     83.918        81.249        .43841E-04   -1.3873    
   5  Prefactor     .10000E-03    41.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    48.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4197        7.0774        .31919E-03   -1.5470    
   8  Prefactor     10.628        47.375        .12297E-03   -1.5056    
   9  norm          .10000E-03    1.5483        .77857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6485        1.9807        .46059E-04   -1.5233    
  12  norm          .10000E-03    6.7378        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4453        4.1446        .10728E-03   -1.5241    
  14  Prefactor     7.9067        164.25        .14285E-03   -1.5146    
  15  norm          .10000E-03    9.6566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7218        21.041        .12346E-02   -1.5378    
  17  norm          4.8356        3.5010        .96410E-04   -1.5268    
  18  norm          .10000E-03    3.3405        .11486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.312        21.271        .10237E-03   -1.4925    
  20  Prefactor     .10000E-03    3.2977        .11420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.816        38.101        .87856E-04   -1.4795    
  22  norm          2.5192        2.3270        .91504E-04   -1.5391    
  23  Prefactor     .10002E-03    80.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82217        .25666        .26105E-03   -.99252    
  25  Prefactor     1.2614        .29945        .26940E-03   -.84463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91779e-09
Minuit parameter uncertainties:
  1  0.00168502
  2  0.00128597
  3  0.0110738
  4  81.3568
  5  0.000907888
  6  0.000928012
  7  6.34057
  8  44.9366
  9  2.57597e-06
  10  1.43622e-05
  11  1.98076
  12  1.81075e-05
  13  4.1448
  14  72.3016
  15  2.46588e-06
  16  15.1422
  17  3.50118
  18  4.09362e-07
  19  21.2819
  20  1.05648e-06
  21  38.1456
  22  2.32708
  23  0.00283683
  24  0.257036
  25  0.299857
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.722e+00  1.514e+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.261e+00  2.999e-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:  8.222e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/197768/likelihoodResults_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.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) = 4158.69400376
delta logL = 0.0478816846799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4158.68750913
delta logL = 0.0543763202541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6425       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4324       1.0000          .0000       10.000    
     3 'Normalizat'    .81076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2691       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=   4158.688     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6276        167.58        .82411E-02    .52869E-03
   2  Index         3.4356        6.6984        .21276        .37669E-04
   3  Normalizat    .81099        .40594E-01    .43751E-01    .81431E-05
   4  Prefactor     1.2687        .50265E-01    .60759E-01    .60706E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6276
  Index      = 3.43556
  Normalizat = 0.810994
  Prefactor  = 1.26871
 **********
 **   18 **HESSE 
 **********

 FCN=   4158.688     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6276        284.66        .22056E-03   -1.5453    
   2  Index         3.4356        6.8070        .11693E-01   -.31823    
   3  Normalizat    .81099        .25683        .26264E-03   -.99662    
   4  Prefactor     1.2687        .31491        .26870E-03   -.84242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36145e-07
Minuit parameter uncertainties:
  1  43.2585
  2  15.4137
  3  0.257213
  4  0.31538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197768': 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) = 4158.68750664
delta logL = 0.0543788130444

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.628e+00  4.326e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.436e+00  1.541e+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:  1.269e+00  3.154e-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:  8.110e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/197768/cmap_HighResolution_407808001_408067201_4FGL_J1158.5+4824_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-04 17:50:54.519468', job_id='197768', GAL2='1.27', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1630803054.52', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='5.44e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='650' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 197768: <4FGL_J1158.5+4824_daily_bin650> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin650> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:36:20 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:36:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:36:21 2021
Terminated at Sat Sep  4 17:50:55 2021
Results reported at Sat Sep  4 17:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin650 179.637 48.4161 407808001 408067201 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 :                                   628.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

