/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 170 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 = 7257
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin247
RA = 164.624, Dec = 1.5641
tmin = 303350401, tmax = 303609601
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='326763', job_status='RUN', time_executed='2021-09-02 22:14:32.756821', time_epoch_executed='1630646072.76' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326763

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326763/ft1_4FGL_J1058.4+0133_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326763/ft1_4FGL_J1058.4+0133_daily_bin247.fits outfile=/scratch/kocevski/326763/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin247.fits ra=164.624 dec=1.5641 rad=12.0 tmin=303350401.0 tmax=303609601.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 3.58
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.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/326763/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin247.fits evtable="EVENTS" outfile="/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.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.57
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/326763/ltcube_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.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/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits
.....................!
real 18.11
user 17.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/326763/ltcube_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits outfile=/scratch/kocevski/326763/expmap_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.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/326763/ltcube_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits
.....................!
real 198.42
user 192.60
sys 4.93

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.4+0133 @ 164.624 1.5641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits outfile=/scratch/kocevski/326763/cmap_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.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=164.624 yref=1.5641 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits outfile=/scratch/kocevski/326763/cmap_HighResolution_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.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=164.624 yref=1.5641 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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326763/Model_4FGL_J1058.4+0133_daily_bin247.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/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits.....................!
real 68.74
user 66.82
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits', '/scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits', expMap='/scratch/kocevski/326763/expmap_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits', expCube='/scratch/kocevski/326763/ltcube_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/326763/Model_4FGL_J1058.4+0133_daily_bin247.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.4+0133'

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/326763/ft1_filtered_4FGL_J1058.4+0133_daily_bin247.fits
Spacecraft file(s): /scratch/kocevski/326763/ft2_4FGL_J1058.4+0133_daily_bin247.fits
Exposure map: /scratch/kocevski/326763/expmap_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits
Exposure cube: /scratch/kocevski/326763/ltcube_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/326763/Model_4FGL_J1058.4+0133_daily_bin247.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) = 6925.2127443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18467E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .52343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2133       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8206       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2189       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6925.044     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2084 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.556       -.17703E-06** at limit **
   2  Prefactor     .10000E-03    42.801       -.11249E-05** at limit **
   3  Prefactor     58.609        48.290       -.10376E-04    .17649E-03
   4  Prefactor     .10000E-03    7.1488        .34050E-05** at limit **
   5  norm          .10000E-03    .50634        .16221E-07** at limit **
   6  Prefactor     .10002E-03    4.8998        .51158E-06** at limit **
   7  Prefactor     9.9665        4.7108        .70269E-07   -.18876E-03
   8  Prefactor     .10000E-03    4.1709        .21754E-08** at limit **
   9  norm          1.1291        .53416       -.26071E-07   -.11112E-03
  10  Prefactor     .10000E-03    2.4645       -.13955E-07** at limit **
  11  norm          .52369        1.1634       -.45572E-06   -.16160E-02
  12  Prefactor     17.211        15.405       -.17252E-06    .40058E-04
  13  Prefactor     .10000E-03    7.9314       -.52490E-05** at limit **
  14  Prefactor     .10000E-03    5.2514       -.18554E-06** at limit **
  15  Prefactor     9.2141        5.8579       -.60851E-07   -.38134E-04
  16  norm          3.6368        7.7646       -.19211E-06   -.20039E-03
  17  Prefactor     1.8222        4.2465       -.10486E-05   -.84606E-03
  18  norm          .10000E-03    10.059        .38171E-05** at limit **
  19  Prefactor     3.9210        2.7146       -.11644E-06   -.29107E-03
  20  Prefactor     .10000E-03    15.295       -.27553E-05** at limit **
  21  Normalizat    1.2190        .20889        .12054E-05   -.21279E-04
  22  Prefactor     1.0293        .16034       -.46938E-07    .27956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 58.6094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 9.96649
  Prefactor  = 0.0001
  norm       = 1.12911
  Prefactor  = 0.0001
  norm       = 0.523688
  Prefactor  = 17.2108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.21411
  norm       = 3.63676
  Prefactor  = 1.8222
  norm       = 0.0001
  Prefactor  = 3.92098
  Prefactor  = 0.0001
  Normalizat = 1.21901
  Prefactor  = 1.02933
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.044     FROM HESSE     STATUS=OK           346 CALLS     2430 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     58.609        47.638        .26200E-03   -1.4175    
   4  Prefactor     .10000E-03    7.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .86782        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    21.267        .34857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9665        4.7217        .11649E-03   -1.5076    
   8  Prefactor     .10000E-03    4.1963        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1291        .53325        .40140E-04   -1.5495    
  10  Prefactor     .10000E-03    2.4705        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52369        1.1386        .13006E-02   -1.5563    
  12  Prefactor     17.211        15.403        .96539E-04   -1.4878    
  13  Prefactor     .10000E-03    7.8441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2141        5.8206        .13204E-03   -1.5101    
  16  norm          3.6368        7.6889        .21177E-03   -1.5327    
  17  Prefactor     1.8222        4.2884        .24507E-03   -1.5438    
  18  norm          .10000E-03    10.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9210        2.7110        .10903E-03   -1.5312    
  20  Prefactor     .10000E-03    15.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2190        .24354        .28313E-03   -.86017    
  22  Prefactor     1.0293        .18761        .24389E-03   -.91758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71351e-09
Minuit parameter uncertainties:
  1  0.000382553
  2  0.000209852
  3  47.6686
  4  2.3897e-05
  5  1.08213e-06
  6  0.00143849
  7  4.72192
  8  3.74481e-06
  9  0.533248
  10  8.55818e-07
  11  1.13864
  12  15.4069
  13  0.000112412
  14  7.74605e-06
  15  5.82091
  16  7.69099
  17  4.28909
  18  6.68445e-05
  19  2.71113
  20  0.000106704
  21  0.243767
  22  0.187733
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.129e+00  5.332e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.029e+00  1.877e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.219e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.02
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.18e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 1.66e-05

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) = 6924.91292539
delta logL = 0.130893744517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.90885921
delta logL = 0.134959925767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1679       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6924.909     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      226 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1680        13.929        .95230E-02    .57487E-04
   2  alpha         1.9759        3.1631        .30096        .50185E-05
   3  Normalizat    1.2349        .21045        .63663E-01    .28004E-04
   4  Prefactor     1.0227        .14597        .41848E-01    .35954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16798
  alpha      = 1.97594
  Normalizat = 1.23489
  Prefactor  = 1.0227
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.909     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1680        .56589        .42021E-04   -1.5492    
   2  alpha         1.9759        .40418        .11734E-01   -.21119    
   3  Normalizat    1.2349        .23417        .28161E-03   -.85531    
   4  Prefactor     1.0227        .18717        .24462E-03   -.91977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13701e-12
Minuit parameter uncertainties:
  1  0.565896
  2  0.40604
  3  0.234373
  4  0.187289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326763': 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) = 6924.90885474
delta logL = 0.13496439648

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.168e+00  5.659e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.976e+00  4.060e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.023e+00  1.873e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.235e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.28
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.98 +/- 0.41
Photon Flux (Free Index): 6.64e-08 +/- 4.29e-08
Energy Flux (Free Index): 4.20e-05 +/- 2.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/326763/cmap_HighResolution_303350401_303609601_4FGL_J1058.4+0133_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.18e-08', energy_flux2='4.20e-05', photon_flux_error='3.86e-08', dlogl='1.35e-01', energy_flux='3.52e-05', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-02 22:25:10.825974', photon_index_error2='0.41', photon_index2='1.98', ts='13.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.22', time_epoch_completed='1630646710.83', return_code='0', job_id='326763', GAL2='1.02', EG2='1.23', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.29e-08', ts2='13.28', photon_index='2.19' WHERE bin_id='247' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 326763: <4FGL_J1058.4+0133_daily_bin247> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin247> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:19 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:11:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 22:11:31 2021
Terminated at Thu Sep  2 22:25:11 2021
Results reported at Thu Sep  2 22:25:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin247 164.624 1.5641 303350401 303609601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.4+0133 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            832 sec.

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

