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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin720
RA = 164.624, Dec = 1.5641
tmin = 425952001, tmax = 426211201
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='330164', job_status='RUN', time_executed='2021-09-02 22:24:52.420291', time_epoch_executed='1630646692.42' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330164/ft1_4FGL_J1058.4+0133_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330164/ft2_4FGL_J1058.4+0133_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330164/ft1_4FGL_J1058.4+0133_daily_bin720.fits outfile=/scratch/kocevski/330164/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin720.fits ra=164.624 dec=1.5641 rad=12.0 tmin=425952001.0 tmax=426211201.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.73
user 3.44
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330164/ft1_filtered_4FGL_J1058.4+0133_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/330164/ft2_4FGL_J1058.4+0133_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/330164/ltcube_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.fits outfile=/scratch/kocevski/330164/expmap_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.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/330164/ltcube_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.fits
.....................!
real 193.14
user 187.22
sys 5.36

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/330164/ft1_filtered_4FGL_J1058.4+0133_daily_bin720.fits scfile=/scratch/kocevski/330164/ft2_4FGL_J1058.4+0133_daily_bin720.fits outfile=/scratch/kocevski/330164/cmap_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330164/ft1_filtered_4FGL_J1058.4+0133_daily_bin720.fits scfile=/scratch/kocevski/330164/ft2_4FGL_J1058.4+0133_daily_bin720.fits outfile=/scratch/kocevski/330164/cmap_HighResolution_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6048       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
     9 'norm      '    .22946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.292       1.0000         .10000E-03   10000.    
    11 'norm      '    .68409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.690       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19349E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.487       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.358       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0317       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=   6889.989     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2365 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4350        .11435E-07** at limit **
   2  Prefactor     .10001E-03    47.011        .52333E-05** at limit **
   3  Prefactor     .10001E-03    49.789       -.52038E-05** at limit **
   4  Prefactor     .10000E-03    13.583       -.63834E-08** at limit **
   5  norm          2.5664        1.6278       -.13760E-07   -.15235E-03
   6  Prefactor     34.269        10.126       -.62292E-07   -.67754E-04
   7  Prefactor     5.6038        4.0351        .17051E-05   -.21881E-02
   8  Prefactor     11.115        12.214       -.10687E-05   -.16837E-03
   9  norm          .22934        .68382        .43758E-06   -.37404E-04
  10  Prefactor     18.295        15.467       -.78615E-06   -.29337E-03
  11  norm          .68421        .65382        .62720E-08    .18110E-03
  12  Prefactor     25.671        23.118       -.41997E-05   -.70217E-03
  13  Prefactor     .10000E-03    4.3296        .10363E-07** at limit **
  14  Prefactor     .10000E-03    5.8228       -.59188E-06** at limit **
  15  Prefactor     .10000E-03    1.5300        .11236E-07** at limit **
  16  norm          12.495        8.3211        .73614E-08    .82426E-04
  17  Prefactor     .10000E-03    1.6849        .32702E-08** at limit **
  18  norm          .10000E-03    13.533        .19786E-06** at limit **
  19  Prefactor     1.7124        1.7919        .28806E-07   -.37222E-04
  20  Prefactor     22.356        24.158       -.35028E-06   -.48833E-04
  21  Normalizat    1.1313        .21363       -.16757E-06   -.89915E-04
  22  Prefactor     1.0319        .16679        .78530E-07   -.61641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 2.56639
  Prefactor  = 34.2693
  Prefactor  = 5.60381
  Prefactor  = 11.1153
  norm       = 0.229335
  Prefactor  = 18.2945
  norm       = 0.684213
  Prefactor  = 25.6714
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 12.4949
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71235
  Prefactor  = 22.3561
  Normalizat = 1.13134
  Prefactor  = 1.03187
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.989     FROM HESSE     STATUS=OK           350 CALLS     2715 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    47.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    50.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5664        1.6212        .80634E-04   -1.5388    
   6  Prefactor     34.269        10.130        .68454E-04   -1.4536    
   7  Prefactor     5.6038        4.4880        .70243E-03   -1.5234    
   8  Prefactor     11.115        12.339        .12018E-03   -1.5041    
   9  norm          .22934        .61315        .82339E-03   -1.5612    
  10  Prefactor     18.295        13.842        .93647E-04   -1.4852    
  11  norm          .68421        .68772        .63886E-03   -1.5543    
  12  Prefactor     25.671        24.536        .79035E-04   -1.4694    
  13  Prefactor     .10000E-03    4.3366        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.600        .38347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5365        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.495        8.2635        .11336E-03   -1.5001    
  17  Prefactor     .10000E-03    1.7110        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7124        1.7858        .10949E-03   -1.5446    
  20  Prefactor     22.356        24.167        .84711E-04   -1.4762    
  21  Normalizat    1.1313        .25199        .29632E-03   -.88752    
  22  Prefactor     1.0319        .19584        .24778E-03   -.91675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70516e-08
Minuit parameter uncertainties:
  1  5.2993e-06
  2  0.00131274
  3  0.00138845
  4  9.2319e-06
  5  1.62123
  6  10.1301
  7  4.48822
  8  12.3419
  9  0.613165
  10  13.8448
  11  0.687728
  12  24.5456
  13  4.18389e-07
  14  0.00060788
  15  4.18065e-07
  16  8.2643
  17  4.32447e-07
  18  3.44334e-05
  19  1.78583
  20  24.1771
  21  0.252256
  22  0.195978
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.293e-01  6.132e-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.032e+00  1.960e-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.131e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/330164/likelihoodResults_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.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) = 6889.4627865
delta logL = 0.526434841994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6889.45786107
delta logL = 0.531360275316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14552       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0647       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=   6889.458     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14510        1.6219        .62610E-02    .33323E-02
   2  alpha         3.5921        4.0813        .43544        .63081E-04
   3  Normalizat    1.0603        .40169E-01    .68764E-01   -.94587E-05
   4  Prefactor     1.0647        .32551E-01    .39115E-01   -.30650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.145096
  alpha      = 3.59207
  Normalizat = 1.06035
  Prefactor  = 1.06474
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.458     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14510        5.8493        .28204E-04   -1.5632    
   2  alpha         3.5921        3.3033        .15814E-01    .45207    
   3  Normalizat    1.0603        .25861        .30423E-03   -.91035    
   4  Prefactor     1.0647        .21516        .24416E-03   -.90601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.10406e-10
Minuit parameter uncertainties:
  1  1.84206
  2  7.61555
  3  0.258919
  4  0.215337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330164': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6889.45786026
delta logL = 0.531361085162

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.451e-01  1.842e+00  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  3.592e+00  7.616e+00  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.065e+00  2.153e-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.060e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 164.624 1.564
Photon Index (Free Index): 3.59 +/- 7.62
Photon Flux (Free Index): 8.63e-08 +/- 8.20e-08
Energy Flux (Free Index): 1.44e-05 +/- 2.96e-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/330164/cmap_HighResolution_425952001_426211201_4FGL_J1058.4+0133_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='5.31e-01', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-02 22:36:37.366712', photon_index_error2='7.62', photon_index2='3.59', ts='0.25', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.96e-05', EG='1.13', time_epoch_completed='1630647397.37', return_code='0', job_id='330164', GAL2='1.06', EG2='1.06', return_code2='102', photon_flux_error2='8.20e-08', ts2='1.38', photon_index='2.19' WHERE bin_id='720' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:36:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 330164: <4FGL_J1058.4+0133_daily_bin720> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin720> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:21:58 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:22:12 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:12 2021
Terminated at Thu Sep  2 22:36:38 2021
Results reported at Thu Sep  2 22:36:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin720 164.624 1.5641 425952001 426211201 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 :                                   702.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            880 sec.

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

