/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7737
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin767
RA = 164.624, Dec = 1.5641
tmin = 438134401, tmax = 438393601
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='330219', job_status='RUN', time_executed='2021-09-02 22:22:44.948207', time_epoch_executed='1630646564.95' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330219

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330219/ft1_4FGL_J1058.4+0133_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330219/ft2_4FGL_J1058.4+0133_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330219/ft1_4FGL_J1058.4+0133_daily_bin767.fits outfile=/scratch/kocevski/330219/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin767.fits ra=164.624 dec=1.5641 rad=12.0 tmin=438134401.0 tmax=438393601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.35
user 6.05
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330219/ft1_filtered_4FGL_J1058.4+0133_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/330219/ft2_4FGL_J1058.4+0133_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/330219/ltcube_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.fits outfile=/scratch/kocevski/330219/expmap_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.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/330219/ltcube_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.fits
.....................!
real 192.34
user 187.58
sys 4.32

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/330219/ft1_filtered_4FGL_J1058.4+0133_daily_bin767.fits scfile=/scratch/kocevski/330219/ft2_4FGL_J1058.4+0133_daily_bin767.fits outfile=/scratch/kocevski/330219/cmap_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330219/ft1_filtered_4FGL_J1058.4+0133_daily_bin767.fits scfile=/scratch/kocevski/330219/ft2_4FGL_J1058.4+0133_daily_bin767.fits outfile=/scratch/kocevski/330219/cmap_HighResolution_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19637E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.504       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0995       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=   3601.032     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2052 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4733        .39868E-07** at limit **
   2  Prefactor     .10000E-03    43.037        .12567E-04** at limit **
   3  Prefactor     .10000E-03    16.974       -.17527E-04** at limit **
   4  Prefactor     .10000E-03    5.7083       -.54882E-07** at limit **
   5  norm          .73517        1.8659       -.16338E-06   -.25238E-03
   6  Prefactor     .10026E-03    9.2268       -.36678E-05** at limit **
   7  Prefactor     6.8283        4.1563       -.15536E-06    .12750E-03
   8  Prefactor     .10000E-03    7.7303       -.27223E-07** at limit **
   9  norm          1.1008        .71922        .11698E-07    .69927E-03
  10  Prefactor     .10000E-03    10.515       -.33387E-05** at limit **
  11  norm          1.7578        1.8755       -.10184E-08    .24973E-03
  12  Prefactor     .45894        32.881       -.41066E-05    .19384E-03
  13  Prefactor     .10000E-03    18.807        .18919E-04** at limit **
  14  Prefactor     .10000E-03    12.700        .31180E-05** at limit **
  15  Prefactor     .10000E-03    2.3274       -.34938E-07** at limit **
  16  norm          15.513        11.533       -.88497E-06   -.15522E-03
  17  Prefactor     .10000E-03    2.7361       -.11510E-06** at limit **
  18  norm          4.1328        23.046        .64874E-05   -.43826E-04
  19  Prefactor     1.9325        2.3661       -.92546E-07   -.11918E-03
  20  Prefactor     .10000E-03    10.667        .23819E-05** at limit **
  21  Normalizat    .97703        .26274        .16669E-05    .41629E-03
  22  Prefactor     1.0995        .21034       -.39795E-06    .44053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.735167
  Prefactor  = 0.000100258
  Prefactor  = 6.82829
  Prefactor  = 0.0001
  norm       = 1.10077
  Prefactor  = 0.0001
  norm       = 1.75785
  Prefactor  = 0.45894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5134
  Prefactor  = 0.0001
  norm       = 4.13277
  Prefactor  = 1.93252
  Prefactor  = 0.0001
  Normalizat = 0.977026
  Prefactor  = 1.09953
 **********
 **   18 **HESSE 
 **********

 FCN=   3601.032     FROM HESSE     STATUS=OK           340 CALLS     2392 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4747        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7092        .14003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73517        1.8245        .12188E-03   -1.5536    
   6  Prefactor     .10026E-03    32.674        .33603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8283        4.1590        .91522E-04   -1.5185    
   8  Prefactor     .10000E-03    7.8216        .16286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1008        .71328        .39331E-04   -1.5498    
  10  Prefactor     .10000E-03    10.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7578        1.8584        .79882E-04   -1.5443    
  12  Prefactor     .45894        422.76        .62289E-02   -1.5572    
  13  Prefactor     .10000E-03    18.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3356        .89389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.513        11.541        .10172E-03   -1.4920    
  17  Prefactor     .10000E-03    2.7492        .96701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1328        22.809        .19807E-03   -1.5301    
  19  Prefactor     1.9325        2.3539        .98842E-04   -1.5430    
  20  Prefactor     .10000E-03    10.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97703        .29805        .27856E-03   -.93804    
  22  Prefactor     1.0995        .24034        .22244E-03   -.89482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44542e-08
Minuit parameter uncertainties:
  1  2.7562e-07
  2  1.14046e-05
  3  1.2059e-06
  4  3.0992e-07
  5  1.82459
  6  0.00580825
  7  4.15917
  8  5.09962e-06
  9  0.713289
  10  6.31004e-06
  11  1.85849
  12  28.056
  13  7.12601e-05
  14  3.70636e-05
  15  2.20384e-06
  16  11.5431
  17  2.58809e-05
  18  19.429
  19  2.35406
  20  1.81451e-05
  21  0.298559
  22  0.24058
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.101e+00  7.133e-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.100e+00  2.406e-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.770e-01  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.98e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 2.22e-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) = 3600.20200853
delta logL = 0.829763776359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3600.17554474
delta logL = 0.856227564042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92913       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4660       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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=   3600.176     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92871        .69186        .93091E-02   -.43850E-04
   2  alpha         1.4656        .39631        .24250       -.24433E-04
   3  Normalizat    1.0181        .24660        .43652E-01    .71276E-05
   4  Prefactor     1.0858        .20860        .38153E-01    .30557E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.928709
  alpha      = 1.46561
  Normalizat = 1.01806
  Prefactor  = 1.08576
 **********
 **   18 **HESSE 
 **********

 FCN=   3600.176     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92871        .86443        .40917E-04   -1.5515    
   2  alpha         1.4656        .52592        .10010E-01   -.42658    
   3  Normalizat    1.0181        .28050        .27364E-03   -.92428    
   4  Prefactor     1.0858        .23762        .22383E-03   -.89923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74294e-10
Minuit parameter uncertainties:
  1  0.864442
  2  0.530712
  3  0.280903
  4  0.237852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330219': 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) = 3600.17554441
delta logL = 0.85622788727

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.287e-01  8.644e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.466e+00  5.307e-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.086e+00  2.379e-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.018e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.50
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.47 +/- 0.53
Photon Flux (Free Index): 3.63e-08 +/- 3.80e-08
Energy Flux (Free Index): 8.59e-05 +/- 9.46e-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/330219/cmap_HighResolution_438134401_438393601_4FGL_J1058.4+0133_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.98e-08', energy_flux2='8.59e-05', photon_flux_error='5.17e-08', dlogl='8.56e-01', energy_flux='3.43e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-02 22:30:47.821538', photon_index_error2='0.53', photon_index2='1.47', ts='5.80', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='9.46e-05', EG='0.98', time_epoch_completed='1630647047.82', return_code='0', job_id='330219', GAL2='1.09', EG2='1.02', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='3.80e-08', ts2='7.50', photon_index='2.19' WHERE bin_id='767' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 330219: <4FGL_J1058.4+0133_daily_bin767> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin767 164.624 1.5641 438134401 438393601 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 :                                   477.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            525 sec.

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

