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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin712
RA = 164.624, Dec = 1.5641
tmin = 423878401, tmax = 424137601
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='330156', job_status='RUN', time_executed='2021-09-02 22:24:45.816412', time_epoch_executed='1630646685.82' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330156/ft1_4FGL_J1058.4+0133_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330156/ft2_4FGL_J1058.4+0133_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330156/ft1_4FGL_J1058.4+0133_daily_bin712.fits outfile=/scratch/kocevski/330156/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin712.fits ra=164.624 dec=1.5641 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.39
user 5.10
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330156/ft2_4FGL_J1058.4+0133_daily_bin712.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/330156/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/330156/ft1_filtered_4FGL_J1058.4+0133_daily_bin712.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.51
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330156/ft1_filtered_4FGL_J1058.4+0133_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/330156/ft2_4FGL_J1058.4+0133_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/330156/ltcube_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.fits outfile=/scratch/kocevski/330156/expmap_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.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/330156/ltcube_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.fits
.....................!
real 190.57
user 185.89
sys 4.00

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/330156/ft1_filtered_4FGL_J1058.4+0133_daily_bin712.fits scfile=/scratch/kocevski/330156/ft2_4FGL_J1058.4+0133_daily_bin712.fits outfile=/scratch/kocevski/330156/cmap_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330156/ft1_filtered_4FGL_J1058.4+0133_daily_bin712.fits scfile=/scratch/kocevski/330156/ft2_4FGL_J1058.4+0133_daily_bin712.fits outfile=/scratch/kocevski/330156/cmap_HighResolution_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7364       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4827       1.0000         .10000E-03   10000.    
     9 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36180E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11943E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10575E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    12.948       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7240       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65838       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=   6213.454     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2094 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3538       -.51926E-08** at limit **
   2  Prefactor     .10000E-03    19.572        .98725E-06** at limit **
   3  Prefactor     .10000E-03    14.781       -.29898E-06** at limit **
   4  Prefactor     .10000E-03    4.8990       -.17858E-08** at limit **
   5  norm          2.4725        1.4658       -.63646E-07   -.15826E-04
   6  Prefactor     4.7335        8.0982        .26355E-05    .15041E-04
   7  Prefactor     2.8237        3.6161        .16765E-05    .46111E-05
   8  Prefactor     5.4867        9.9054        .16417E-05    .38933E-05
   9  norm          .10000E-03    .49767       -.38147E-07** at limit **
  10  Prefactor     .10000E-03    7.5519        .66491E-06** at limit **
  11  norm          .10000E-03    1.1979        .47780E-07** at limit **
  12  Prefactor     .10000E-03    49.909        .11212E-06** at limit **
  13  Prefactor     15.377        15.127        .14105E-05    .60558E-03
  14  Prefactor     .10001E-03    24.214       -.27738E-06** at limit **
  15  Prefactor     .10006E-03    2.5268       -.14766E-05** at limit **
  16  norm          12.954        8.9189        .58648E-06    .88632E-03
  17  Prefactor     .10000E-03    1.4572       -.67726E-08** at limit **
  18  norm          20.408        15.098        .45844E-07    .46585E-04
  19  Prefactor     1.9367        1.9750        .10190E-06    .69116E-04
  20  Prefactor     .10000E-03    8.8346        .12965E-07** at limit **
  21  Normalizat    1.7241        .22117       -.10382E-05    .44296E-03
  22  Prefactor     .65852        .16153       -.22684E-06    .29048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47251
  Prefactor  = 4.73348
  Prefactor  = 2.82372
  Prefactor  = 5.48673
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.3771
  Prefactor  = 0.000100006
  Prefactor  = 0.000100056
  norm       = 12.9538
  Prefactor  = 0.0001
  norm       = 20.4082
  Prefactor  = 1.93671
  Prefactor  = 0.0001
  Normalizat = 1.72407
  Prefactor  = 0.658518
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.454     FROM HESSE     STATUS=OK           342 CALLS     2436 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3582        .14098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9005        .17040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4725        1.4645        .70519E-04   -1.5393    
   6  Prefactor     4.7335        8.1019        .92443E-03   -1.5273    
   7  Prefactor     2.8237        3.6100        .80513E-03   -1.5372    
   8  Prefactor     5.4867        9.7436        .85799E-03   -1.5239    
   9  norm          .10000E-03    1.1249        .99982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.805        .38491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9376        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.377        15.281        .10214E-03   -1.4923    
  14  Prefactor     .10001E-03    25.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    23.791        .21496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.954        8.7705        .11132E-03   -1.4988    
  17  Prefactor     .10000E-03    1.4643        .92756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.408        15.079        .88659E-04   -1.4804    
  19  Prefactor     1.9367        1.9617        .10745E-03   -1.5430    
  20  Prefactor     .10000E-03    8.8467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7241        .25609        .24547E-03   -.71662    
  22  Prefactor     .65852        .19014        .28435E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50287e-09
Minuit parameter uncertainties:
  1  2.26211e-07
  2  0.000441452
  3  0.000112049
  4  8.18431e-07
  5  1.46455
  6  8.10373
  7  3.61033
  8  9.74639
  9  9.19525e-06
  10  8.69151e-05
  11  6.00814e-06
  12  0.00049982
  13  15.285
  14  0.00075657
  15  0.00231928
  16  8.77136
  17  3.9726e-07
  18  15.0819
  19  1.96176
  20  6.24183e-06
  21  0.256285
  22  0.190327
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  9.195e-06  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:  6.585e-01  1.903e-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.724e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.624 1.564
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330156/likelihoodResults_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.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): 102
logL (Free Index) = 6213.17475805
delta logL = 0.278790390233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6213.14266219
delta logL = 0.310886244148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27704E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69285       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=   6213.143     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      290 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27911E-01    .59812        .35850E-02    .53277E-02
   2  alpha         4.4442        3.5468        .50000        .48042E-04
   3  Normalizat    1.6468        .43671E-01    .56521E-01   -.53556E-04
   4  Prefactor     .69296        .33357E-01    .62788E-01   -.18754E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0279113
  alpha      = 4.44418
  Normalizat = 1.64684
  Prefactor  = 0.692959
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.143     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27911E-01    2.0638        .15798E-04   -1.5675    
   2  alpha         4.4442        2.5876        .40594E-01    .89095    
   3  Normalizat    1.6468        .19078        .24991E-03   -.73732    
   4  Prefactor     .69296        .14519        .27776E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78807e-06
Minuit parameter uncertainties:
  1  0.479173
  2  9.68537
  3  0.190866
  4  0.145269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330156': 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) = 6213.14265885
delta logL = 0.310889589916

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.791e-02  4.792e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  4.444e+00  9.685e+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:  6.930e-01  1.453e-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.647e+00  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.624 1.564

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/330156/cmap_HighResolution_423878401_424137601_4FGL_J1058.4+0133_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-02 22:35:41.426622', job_id='330156', GAL2='0.69', fit_tolerance='1e-08', EG2='1.65', EG='1.72', time_epoch_completed='1630647341.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.11e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='712' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 330156: <4FGL_J1058.4+0133_daily_bin712> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:21:57 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:22:11 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:11 2021
Terminated at Thu Sep  2 22:35:42 2021
Results reported at Thu Sep  2 22:35:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin712 164.624 1.5641 423878401 424137601 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 :                                   651.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            825 sec.

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

