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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin327
RA = 164.624, Dec = 1.5641
tmin = 324086401, tmax = 324345601
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='326919', job_status='RUN', time_executed='2021-09-02 22:13:56.742177', time_epoch_executed='1630646036.74' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326919/ft1_4FGL_J1058.4+0133_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326919/ft2_4FGL_J1058.4+0133_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326919/ft1_4FGL_J1058.4+0133_daily_bin327.fits outfile=/scratch/kocevski/326919/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin327.fits ra=164.624 dec=1.5641 rad=12.0 tmin=324086401.0 tmax=324345601.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.31
user 4.05
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326919/ft1_filtered_4FGL_J1058.4+0133_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/326919/ft2_4FGL_J1058.4+0133_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/326919/ltcube_324086401_324345601_4FGL_J1058.4+0133_daily_bin327.fits outfile=/scratch/kocevski/326919/expmap_324086401_324345601_4FGL_J1058.4+0133_daily_bin327.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/326919/ltcube_324086401_324345601_4FGL_J1058.4+0133_daily_bin327.fits
.....................!
real 191.01
user 186.62
sys 3.86

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/326919/ft1_filtered_4FGL_J1058.4+0133_daily_bin327.fits scfile=/scratch/kocevski/326919/ft2_4FGL_J1058.4+0133_daily_bin327.fits outfile=/scratch/kocevski/326919/cmap_324086401_324345601_4FGL_J1058.4+0133_daily_bin327.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.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .82370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.314       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0299       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85471E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92875       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=   5119.274     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2373 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0736        .10002E-05** at limit **
   2  Prefactor     28.255        60.382        .55976E-05    .28462E-03
   3  Prefactor     .10000E-03    23.652        .13279E-05** at limit **
   4  Prefactor     .10000E-03    5.7602        .49323E-06** at limit **
   5  norm          .82351        1.4519        .44926E-06    .12574E-03
   6  Prefactor     .10000E-03    5.9585       -.28728E-07** at limit **
   7  Prefactor     .10000E-03    1.0763        .15622E-06** at limit **
   8  Prefactor     15.315        9.3138        .35253E-06   -.47362E-04
   9  norm          2.5918        .86953        .49411E-07   -.17105E-03
  10  Prefactor     .10000E-03    18.372       -.25070E-06** at limit **
  11  norm          2.3676        1.4681        .14347E-06   -.54308E-04
  12  Prefactor     12.675        17.033        .25299E-06   -.10162E-03
  13  Prefactor     .10000E-03    18.148       -.23951E-07** at limit **
  14  Prefactor     10.839        12.308        .33546E-06   -.25742E-04
  15  Prefactor     15.883        7.4395        .13575E-06   -.42983E-04
  16  norm          .10000E-03    4.5717       -.19127E-07** at limit **
  17  Prefactor     .10000E-03    3.3047       -.68854E-07** at limit **
  18  norm          .10000E-03    8.5251       -.11411E-07** at limit **
  19  Prefactor     3.0297        3.2478        .36315E-05   -.15916E-03
  20  Prefactor     .10000E-03    185.69       -.88094E-06** at limit **
  21  Normalizat    1.0344        .22449       -.57040E-05    .85841E-04
  22  Prefactor     .92900        .17228        .22460E-05   -.22276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.2552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.823513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3155
  norm       = 2.59185
  Prefactor  = 0.0001
  norm       = 2.36756
  Prefactor  = 12.6755
  Prefactor  = 0.0001
  Prefactor  = 10.8387
  Prefactor  = 15.8831
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.02967
  Prefactor  = 0.000100001
  Normalizat = 1.03439
  Prefactor  = 0.929004
 **********
 **   18 **HESSE 
 **********

 FCN=   5119.274     FROM HESSE     STATUS=OK           338 CALLS     2711 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0913        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.255        60.747        .75510E-04   -1.4644    
   3  Prefactor     .10000E-03    23.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7633        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82351        1.4197        .10865E-03   -1.5526    
   6  Prefactor     .10000E-03    6.0567        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0822        .72469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.315        9.3275        .10235E-03   -1.4925    
   9  norm          2.5918        .86519        .36145E-04   -1.5386    
  10  Prefactor     .10000E-03    18.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3676        1.4672        .65552E-04   -1.5400    
  12  Prefactor     12.675        17.033        .11254E-03   -1.4996    
  13  Prefactor     .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.839        12.292        .12170E-03   -1.5049    
  15  Prefactor     15.883        7.4333        .10049E-03   -1.4911    
  16  norm          .10000E-03    4.5857        .14934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3385        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.5277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0297        3.2686        .63373E-03   -1.5360    
  20  Prefactor     .10000E-03    193.22        .36723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0344        .25413        .27856E-03   -.91887    
  22  Prefactor     .92900        .19702        .23509E-03   -.95135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38245e-09
Minuit parameter uncertainties:
  1  1.29664e-06
  2  60.8802
  3  2.3258e-05
  4  7.18333e-06
  5  1.4198
  6  2.45684e-05
  7  3.05921e-06
  8  9.32842
  9  0.865198
  10  1.01283e-05
  11  1.4672
  12  17.0393
  13  7.38881e-05
  14  12.2947
  15  7.43377
  16  1.02062e-06
  17  2.26755e-06
  18  1.13104e-06
  19  3.26884
  20  0.000655626
  21  0.254428
  22  0.197172
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.592e+00  8.652e-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:  9.290e-01  1.972e-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.034e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.78
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.88e-07 +/- 6.27e-08
Energy Flux (Fixed Index): 8.08e-05 +/- 2.70e-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) = 5116.40675651
delta logL = 2.86761266151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5116.37711648
delta logL = 2.89725269686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3722       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0479       1.0000          .0000       5.0000    
     3 'Normalizat'    .88230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0063       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=   5116.377     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3723        4.7357        .48596E-02    .19643E-03
   2  alpha         3.0478        2.0281        .11944        .54952E-04
   3  Normalizat    .88244        .12630        .67138E-01    .15770E-04
   4  Prefactor     1.0062        .90758E-01    .43934E-01    .54672E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37227
  alpha      = 3.04784
  Normalizat = 0.882441
  Prefactor  = 1.00622
 **********
 **   18 **HESSE 
 **********

 FCN=   5116.377     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .10E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3723        .75336        .21523E-04   -1.5474    
   2  alpha         3.0478        .39138        .51976E-03    .22093    
   3  Normalizat    .88244        .24854        .29701E-03   -.97080    
   4  Prefactor     1.0062        .19689        .22641E-03   -.92522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04949e-15
Minuit parameter uncertainties:
  1  0.753367
  2  0.393081
  3  0.248861
  4  0.197027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326919': 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) = 5116.37711628
delta logL = 2.89725289576

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.372e+00  7.534e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  3.048e+00  3.931e-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.006e+00  1.970e-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:  8.824e-01  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.98
Ra Dec: 164.624 1.564
Photon Index (Free Index): 3.05 +/- 0.39
Photon Flux (Free Index): 3.36e-07 +/- 1.04e-07
Energy Flux (Free Index): 6.77e-05 +/- 1.88e-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/326919/cmap_HighResolution_324086401_324345601_4FGL_J1058.4+0133_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-07', energy_flux2='6.77e-05', photon_flux_error='6.27e-08', dlogl='2.90e+00', energy_flux='8.08e-05', photon_flux2='3.36e-07', job_status='DONE', time_completed='2021-09-02 22:23:16.583533', photon_index_error2='0.39', photon_index2='3.05', ts='23.78', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.03', time_epoch_completed='1630646596.58', return_code='0', job_id='326919', GAL2='1.01', EG2='0.88', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='1.04e-07', ts2='29.98', photon_index='2.19' WHERE bin_id='327' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 326919: <4FGL_J1058.4+0133_daily_bin327> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin327> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:31 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:13:45 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:13:45 2021
Terminated at Thu Sep  2 22:23:17 2021
Results reported at Thu Sep  2 22:23:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin327 164.624 1.5641 324086401 324345601 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            706 sec.

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

