/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin240
RA = 164.624, Dec = 1.5641
tmin = 301536001, tmax = 301795201
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='326753', job_status='RUN', time_executed='2021-09-02 22:12:34.858953', time_epoch_executed='1630645954.86' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326753/ft1_4FGL_J1058.4+0133_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326753/ft1_4FGL_J1058.4+0133_daily_bin240.fits outfile=/scratch/kocevski/326753/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin240.fits ra=164.624 dec=1.5641 rad=12.0 tmin=301536001.0 tmax=301795201.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.81
user 4.32
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.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/326753/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/326753/ft1_filtered_4FGL_J1058.4+0133_daily_bin240.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.84
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326753/ft1_filtered_4FGL_J1058.4+0133_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/326753/ltcube_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.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/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits
.....................!
real 14.83
user 14.03
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326753/ft1_filtered_4FGL_J1058.4+0133_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/326753/ltcube_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.fits outfile=/scratch/kocevski/326753/expmap_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.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/326753/ltcube_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.fits
.....................!
real 190.49
user 185.63
sys 4.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/326753/ft1_filtered_4FGL_J1058.4+0133_daily_bin240.fits scfile=/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits outfile=/scratch/kocevski/326753/cmap_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326753/ft1_filtered_4FGL_J1058.4+0133_daily_bin240.fits scfile=/scratch/kocevski/326753/ft2_4FGL_J1058.4+0133_daily_bin240.fits outfile=/scratch/kocevski/326753/cmap_HighResolution_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62040E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    86.737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8492       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.584       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.789       1.0000         .10000E-03   10000.    
    11 'norm      '    .70556       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.130       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.721       1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0176       1.0000         .10000E-03   10000.    
    18 'norm      '    .10834E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95983       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0969       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=   6107.353     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2389 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    14.576       -.53555E-05** at limit **
   2  Prefactor     86.693        72.100        .50349E-05    .27190E-03
   3  Prefactor     .10000E-03    35.449       -.14435E-05** at limit **
   4  Prefactor     .10000E-03    8.2684       -.24801E-06** at limit **
   5  norm          .10000E-03    .29273       -.34108E-08** at limit **
   6  Prefactor     3.8946        7.6296        .26821E-06    .72896E-04
   7  Prefactor     5.8499        4.9575        .13035E-05    .14288E-02
   8  Prefactor     17.581        12.151       -.52188E-06    .83037E-04
   9  norm          .10000E-03    .27881        .12461E-07** at limit **
  10  Prefactor     13.789        9.2527        .19466E-06    .93307E-04
  11  norm          .70532        1.6612        .22336E-06    .21322E-03
  12  Prefactor     .10000E-03    12.922       -.71540E-07** at limit **
  13  Prefactor     12.133        16.863        .48463E-07    .66234E-05
  14  Prefactor     .10000E-03    3.6460        .11602E-07** at limit **
  15  Prefactor     15.721        6.3401        .47864E-07    .84232E-05
  16  norm          .10000E-03    3.7821        .18763E-08** at limit **
  17  Prefactor     2.0167        3.7444        .15415E-06    .60472E-04
  18  norm          .10000E-03    16.875        .16991E-06** at limit **
  19  Prefactor     .39516        2.0412        .57852E-06    .25582E-03
  20  Prefactor     .10000E-03    7.0493       -.19213E-08** at limit **
  21  Normalizat    .95975        .21940       -.62258E-07    .28812E-03
  22  Prefactor     1.0969        .16564       -.57790E-06    .24636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100271
  Prefactor  = 86.6931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.89458
  Prefactor  = 5.84993
  Prefactor  = 17.5814
  norm       = 0.0001
  Prefactor  = 13.7891
  norm       = 0.705324
  Prefactor  = 0.0001
  Prefactor  = 12.1333
  Prefactor  = 0.0001
  Prefactor  = 15.721
  norm       = 0.0001
  Prefactor  = 2.01667
  norm       = 0.0001
  Prefactor  = 0.395158
  Prefactor  = 0.0001
  Normalizat = 0.95975
  Prefactor  = 1.09692
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.353     FROM HESSE     STATUS=OK           344 CALLS     2733 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    41.588        .38559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     86.693        74.183        .21569E-03   -1.3843    
   3  Prefactor     .10000E-03    35.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .29332        .41278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8946        7.6216        .20448E-03   -1.5313    
   7  Prefactor     5.8499        5.1379        .74162E-03   -1.5224    
   8  Prefactor     17.581        12.190        .95513E-04   -1.4869    
   9  norm          .10000E-03    .50228        .76459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.789        8.8827        .53932E-03   -1.4965    
  11  norm          .70532        1.6542        .14352E-03   -1.5540    
  12  Prefactor     .10000E-03    12.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.133        16.870        .11502E-03   -1.5011    
  14  Prefactor     .10000E-03    3.6472        .14569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.721        6.3274        .10101E-03   -1.4915    
  16  norm          .10000E-03    3.8015        .14837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0167        3.7095        .19585E-03   -1.5424    
  18  norm          .10000E-03    16.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .39516        2.0554        .21252E-03   -1.5582    
  20  Prefactor     .10000E-03    7.0518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95975        .25361        .30026E-03   -.94391    
  22  Prefactor     1.0969        .19163        .22828E-03   -.89565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48373e-09
Minuit parameter uncertainties:
  1  0.00671644
  2  74.2629
  3  0.000103857
  4  3.19322e-05
  5  9.62776e-08
  6  7.62347
  7  5.13824
  8  12.1913
  9  6.57922e-07
  10  8.88355
  11  1.65427
  12  8.19504e-06
  13  16.8762
  14  1.38975e-06
  15  6.32769
  16  3.45358e-07
  17  3.70991
  18  8.09349e-06
  19  1.80234
  20  9.64638e-07
  21  0.253931
  22  0.191748
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  6.579e-07  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.097e+00  1.917e-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.598e-01  2.539e-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: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326753/likelihoodResults_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.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) = 6107.36275594
delta logL = -0.00966883705769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6107.35308631
delta logL = 7.96054337115e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2039       1.0000          .0000       5.0000    
     3 'Normalizat'    .95975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0969       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=   6107.353     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      235 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .62545        .14502E-01** at limit **
   2  alpha         2.4826        3.3057        .41522        .28396E-06
   3  Normalizat    .95974        .84131E-02    .67875E-01   -.42428E-03
   4  Prefactor     1.0969        .68215E-02    .37705E-01   -.52203E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48263
  Normalizat = 0.959743
  Prefactor  = 1.09692
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.353     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    63.398        .74125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4826        3.5748        .50000       -.69472E-02
   3  Normalizat    .95974        .65426E-01    .30026E-03   -.94392    
   4  Prefactor     1.0969        .53143E-01    .22828E-03   -.89565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.65739e-08
Minuit parameter uncertainties:
  1  0.000161964
  2  586.395
  3  0.0654315
  4  0.0531457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326753': 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) = 6107.35307859
delta logL = 8.513917237e-06

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  1.620e-04  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.483e+00  5.864e+02  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.097e+00  5.315e-02  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.597e-01  6.543e-02  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/326753/cmap_HighResolution_301536001_301795201_4FGL_J1058.4+0133_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-02 22:23:37.224856', job_id='326753', GAL2='1.10', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630646617.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='240' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 326753: <4FGL_J1058.4+0133_daily_bin240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin240 164.624 1.5641 301536001 301795201 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 :                                   655.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            740 sec.

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

