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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin731
RA = 164.624, Dec = 1.5641
tmin = 428803201, tmax = 429062401
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='330175', job_status='RUN', time_executed='2021-09-02 22:22:31.433507', time_epoch_executed='1630646551.43' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330175/ft1_4FGL_J1058.4+0133_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330175/ft1_4FGL_J1058.4+0133_daily_bin731.fits outfile=/scratch/kocevski/330175/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin731.fits ra=164.624 dec=1.5641 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.63
user 6.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.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/330175/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.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.56
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/330175/ltcube_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.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/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits
.....................!
real 15.54
user 15.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/330175/ltcube_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits outfile=/scratch/kocevski/330175/expmap_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.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/330175/ltcube_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits
.....................!
real 190.81
user 186.30
sys 4.07

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/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits scfile=/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits outfile=/scratch/kocevski/330175/cmap_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits scfile=/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits outfile=/scratch/kocevski/330175/cmap_HighResolution_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits', '/scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits', expMap='/scratch/kocevski/330175/expmap_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits', expCube='/scratch/kocevski/330175/ltcube_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330175/Model_4FGL_J1058.4+0133_daily_bin731.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/330175/ft1_filtered_4FGL_J1058.4+0133_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/330175/ft2_4FGL_J1058.4+0133_daily_bin731.fits
Exposure map: /scratch/kocevski/330175/expmap_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits
Exposure cube: /scratch/kocevski/330175/ltcube_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330175/Model_4FGL_J1058.4+0133_daily_bin731.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) = 3693.88524522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12427E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15958E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20103E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4164       1.0000         .10000E-03   10000.    
     9 'norm      '    .99039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.775       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21375E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36238E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    30.888       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2633       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=   3693.876     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2443 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.825        .15458E-06** at limit **
   2  Prefactor     .10000E-03    78.809       -.90897E-06** at limit **
   3  Prefactor     .10009E-03    200.48        .18877E-04** at limit **
   4  Prefactor     .10000E-03    41.185        .63026E-06** at limit **
   5  norm          1.4320        1.5966        .37035E-07   -.56577E-04
   6  Prefactor     .10000E-03    3.8768       -.34902E-07** at limit **
   7  Prefactor     2.3911        4.3263       -.48312E-06   -.17068E-03
   8  Prefactor     6.4123        12.539        .37022E-05   -.47514E-03
   9  norm          .99034        .80471       -.89177E-07   -.17177E-03
  10  Prefactor     .10000E-03    17.034       -.16864E-06** at limit **
  11  norm          1.9242        1.3358        .20461E-07    .62905E-04
  12  Prefactor     39.781        30.740       -.62897E-06   -.59011E-04
  13  Prefactor     .10038E-03    23.517       -.87628E-06** at limit **
  14  Prefactor     .10000E-03    35.260       -.19963E-06** at limit **
  15  Prefactor     .10000E-03    2.5732        .16145E-07** at limit **
  16  norm          .10000E-03    4.6965        .13804E-06** at limit **
  17  Prefactor     .10010E-03    4.8503        .50862E-07** at limit **
  18  norm          30.785        36.457       -.16794E-05   -.23450E-03
  19  Prefactor     1.6227        2.7246        .15769E-06   -.68693E-04
  20  Prefactor     .10000E-03    41.966       -.68538E-06** at limit **
  21  Normalizat    .99369        .27092       -.78462E-06   -.28346E-04
  22  Prefactor     1.2629        .22254        .28789E-06   -.46650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.0001
  norm       = 1.43203
  Prefactor  = 0.0001
  Prefactor  = 2.39113
  Prefactor  = 6.41228
  norm       = 0.990345
  Prefactor  = 0.0001
  norm       = 1.92425
  Prefactor  = 39.7815
  Prefactor  = 0.000100383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100102
  norm       = 30.7849
  Prefactor  = 1.62268
  Prefactor  = 0.0001
  Normalizat = 0.99369
  Prefactor  = 1.26291
 **********
 **   18 **HESSE 
 **********

 FCN=   3693.876     FROM HESSE     STATUS=OK           340 CALLS     2783 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    222.03        .20421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4320        1.5814        .78010E-04   -1.5469    
   6  Prefactor     .10000E-03    3.8887        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3911        4.3062        .15543E-03   -1.5399    
   8  Prefactor     6.4123        13.811        .79224E-03   -1.5201    
   9  norm          .99034        .78287        .46189E-04   -1.5509    
  10  Prefactor     .10000E-03    17.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9242        1.3340        .56879E-04   -1.5431    
  12  Prefactor     39.781        30.761        .63556E-04   -1.4446    
  13  Prefactor     .10038E-03    284.69        .56251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5918        .95200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7030        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10010E-03    63.232        .24377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          30.785        35.799        .72093E-04   -1.4598    
  19  Prefactor     1.6227        2.6976        .12537E-03   -1.5453    
  20  Prefactor     .10000E-03    42.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99369        .32230        .29832E-03   -.93242    
  22  Prefactor     1.2629        .26431        .22725E-03   -.84417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11964e-09
Minuit parameter uncertainties:
  1  1.8166e-05
  2  0.000343926
  3  0.00900641
  4  1.48325e-05
  5  1.58142
  6  3.29458e-06
  7  4.30677
  8  13.8182
  9  0.782877
  10  3.79832e-05
  11  1.33407
  12  30.7729
  13  0.0209954
  14  2.31838e-05
  15  2.22206e-06
  16  1.61377e-05
  17  0.00508978
  18  35.824
  19  2.69782
  20  6.44481e-05
  21  0.322929
  22  0.26459
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.903e-01  7.829e-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.263e+00  2.646e-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:  9.937e-01  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 2.44e-05

TS (Fixed Index): 2.70
Ra Dec: 164.624 1.564
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330175/likelihoodResults_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.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) = 3693.31329444
delta logL = 0.562481119821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3693.30861792
delta logL = 0.56715764674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61241       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9511       1.0000          .0000       5.0000    
     3 'Normalizat'    .92794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2958       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=   3693.309     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61213        7.1595        .64222E-02   -.11828E-02
   2  alpha         2.9513        3.9754        .22969        .65499E-05
   3  Normalizat    .92783        .93877E-01    .69391E-01    .60414E-04
   4  Prefactor     1.2959        .76480E-01    .50795E-01   -.63034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.612134
  alpha      = 2.95127
  Normalizat = 0.927827
  Prefactor  = 1.29591
 **********
 **   18 **HESSE 
 **********

 FCN=   3693.309     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61213        .75446        .28791E-04   -1.5551    
   2  alpha         2.9513        .84281        .93064E-02    .18150    
   3  Normalizat    .92783        .31588        .30699E-03   -.95489    
   4  Prefactor     1.2959        .26446        .22456E-03   -.83429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92196e-10
Minuit parameter uncertainties:
  1  0.754474
  2  0.860248
  3  0.316518
  4  0.264735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330175': 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) = 3693.30861767
delta logL = 0.567157895525

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  6.121e-01  7.545e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.951e+00  8.602e-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.296e+00  2.647e-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:  9.278e-01  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.95 +/- 0.86
Photon Flux (Free Index): 1.29e-07 +/- 8.87e-08
Energy Flux (Free Index): 2.72e-05 +/- 1.79e-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/330175/cmap_HighResolution_428803201_429062401_4FGL_J1058.4+0133_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-05', comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='2.72e-05', photon_flux_error='5.67e-08', dlogl='5.67e-01', energy_flux='3.09e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-02 22:31:39.722417', photon_index_error2='0.86', photon_index2='2.95', ts='2.70', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.79e-05', EG='0.99', time_epoch_completed='1630647099.72', return_code='0', job_id='330175', GAL2='1.30', EG2='0.93', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='8.87e-08', ts2='3.88', photon_index='2.19' WHERE bin_id='731' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:31:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 330175: <4FGL_J1058.4+0133_daily_bin731> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin731> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:21:59 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:22:18 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:22:18 2021
Terminated at Thu Sep  2 22:31:40 2021
Results reported at Thu Sep  2 22:31:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin731 164.624 1.5641 428803201 429062401 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 :                                   544.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            581 sec.

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

