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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin971
RA = 164.624, Dec = 1.5641
tmin = 491011201, tmax = 491270401
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='331375', job_status='RUN', time_executed='2021-09-02 22:31:03.731554', time_epoch_executed='1630647063.73' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331375/ft1_4FGL_J1058.4+0133_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331375/ft1_4FGL_J1058.4+0133_daily_bin971.fits outfile=/scratch/kocevski/331375/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin971.fits ra=164.624 dec=1.5641 rad=12.0 tmin=491011201.0 tmax=491270401.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.99
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/331375/ltcube_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.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/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits
.....................!
real 17.99
user 17.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/331375/ltcube_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits outfile=/scratch/kocevski/331375/expmap_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.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/331375/ltcube_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits
.....................!
real 194.75
user 189.22
sys 4.91

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/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits scfile=/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits outfile=/scratch/kocevski/331375/cmap_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits scfile=/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits outfile=/scratch/kocevski/331375/cmap_HighResolution_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits', '/scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits', expMap='/scratch/kocevski/331375/expmap_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits', expCube='/scratch/kocevski/331375/ltcube_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/331375/Model_4FGL_J1058.4+0133_daily_bin971.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/331375/ft1_filtered_4FGL_J1058.4+0133_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/331375/ft2_4FGL_J1058.4+0133_daily_bin971.fits
Exposure map: /scratch/kocevski/331375/expmap_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits
Exposure cube: /scratch/kocevski/331375/ltcube_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/331375/Model_4FGL_J1058.4+0133_daily_bin971.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7842.87109452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17999E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10813E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3977       1.0000         .10000E-03   10000.    
    18 'norm      '    17.302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.840       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71466       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3673       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=   7842.705     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2416 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3938       -.19423E-07** at limit **
   2  Prefactor     .10000E-03    20.587        .69756E-06** at limit **
   3  Prefactor     .10000E-03    10.350        .13082E-06** at limit **
   4  Prefactor     .10000E-03    3.5233       -.30249E-07** at limit **
   5  norm          3.5848        1.4740        .40084E-07    .58773E-03
   6  Prefactor     .10000E-03    2.7909       -.17708E-06** at limit **
   7  Prefactor     4.6985        2.7957        .10300E-06    .54428E-03
   8  Prefactor     .10000E-03    6.9339       -.21598E-06** at limit **
   9  norm          2.6169        .69065        .69323E-08    .76271E-03
  10  Prefactor     .10000E-03    4.0547       -.53258E-07** at limit **
  11  norm          .10000E-03    .71931       -.30115E-06** at limit **
  12  Prefactor     .10000E-03    38.614        .12492E-06** at limit **
  13  Prefactor     22.100        17.098       -.20105E-06    .21032E-03
  14  Prefactor     6.5332        13.924       -.39350E-06    .34698E-03
  15  Prefactor     .10000E-03    1.2192        .46181E-07** at limit **
  16  norm          .10001E-03    17.165       -.10777E-04** at limit **
  17  Prefactor     5.3890        4.7143        .99951E-06    .27204E-02
  18  norm          17.311        16.302       -.33621E-06    .15035E-03
  19  Prefactor     4.3721        2.2793        .78654E-07    .74771E-03
  20  Prefactor     11.878        22.960       -.31289E-06    .36912E-03
  21  Normalizat    .71466        .18875       -.28137E-06    .48407E-03
  22  Prefactor     1.3671        .15414        .27632E-06    .72201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58485
  Prefactor  = 0.0001
  Prefactor  = 4.69852
  Prefactor  = 0.0001
  norm       = 2.61693
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0995
  Prefactor  = 6.5332
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 5.38896
  norm       = 17.3111
  Prefactor  = 4.37213
  Prefactor  = 11.8785
  Normalizat = 0.714663
  Prefactor  = 1.36711
 **********
 **   18 **HESSE 
 **********

 FCN=   7842.705     FROM HESSE     STATUS=OK           340 CALLS     2756 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3957        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5242        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5848        1.4721        .66094E-04   -1.5329    
   6  Prefactor     .10000E-03    2.8366        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6985        2.7959        .10987E-03   -1.5274    
   8  Prefactor     .10000E-03    7.0833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6169        .68908        .35816E-04   -1.5384    
  10  Prefactor     .10000E-03    4.0664        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1403        .14419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.100        16.985        .85191E-04   -1.4767    
  14  Prefactor     6.5332        13.500        .15702E-03   -1.5197    
  15  Prefactor     .10000E-03    1.2239        .95425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    17.396        .34078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3890        4.9308        .16224E-03   -1.5244    
  18  norm          17.311        16.330        .96288E-04   -1.4876    
  19  Prefactor     4.3721        2.2783        .92851E-04   -1.5290    
  20  Prefactor     11.878        23.009        .11642E-03   -1.5019    
  21  Normalizat    .71466        .21528        .34145E-03   -1.0332    
  22  Prefactor     1.3671        .17911        .21684E-03   -.81333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45686e-09
Minuit parameter uncertainties:
  1  2.22081e-06
  2  0.000320097
  3  4.35402e-05
  4  4.95697e-06
  5  1.47207
  6  2.179e-05
  7  2.796
  8  4.54506e-05
  9  0.689084
  10  7.27882e-06
  11  1.79516e-05
  12  9.20442e-05
  13  16.9884
  14  13.5059
  15  6.96082e-06
  16  0.000757928
  17  4.93114
  18  16.3346
  19  2.2783
  20  23.0258
  21  0.21554
  22  0.179195
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.617e+00  6.891e-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.367e+00  1.792e-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:  7.147e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.50
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.90e-07 +/- 4.99e-08
Energy Flux (Fixed Index): 8.16e-05 +/- 2.15e-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) = 7842.68979174
delta logL = 0.0149603471773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7842.68572721
delta logL = 0.0190248758609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5635       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2388       1.0000          .0000       5.0000    
     3 'Normalizat'    .70642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3709       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=   7842.686     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5635        8.8865        .63741E-02    .13291E-03
   2  alpha         2.2392        3.5593        .17135        .60487E-04
   3  Normalizat    .70627        .17938        .77528E-01    .35747E-04
   4  Prefactor     1.3709        .10779        .48988E-01   -.18710E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56347
  alpha      = 2.23917
  Normalizat = 0.706274
  Prefactor  = 1.37094
 **********
 **   18 **HESSE 
 **********

 FCN=   7842.686     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5635        .73909        .35042E-04   -1.5388    
   2  alpha         2.2392        .25401        .71767E-02   -.10452    
   3  Normalizat    .70627        .21331        .34323E-03   -1.0365    
   4  Prefactor     1.3709        .17858        .21656E-03   -.81221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11982e-10
Minuit parameter uncertainties:
  1  0.739091
  2  0.254451
  3  0.213557
  4  0.178659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331375': 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) = 7842.68572574
delta logL = 0.019026342602

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.563e+00  7.391e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.239e+00  2.545e-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.371e+00  1.787e-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:  7.063e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.30
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.24 +/- 0.25
Photon Flux (Free Index): 1.97e-07 +/- 6.38e-08
Energy Flux (Free Index): 7.89e-05 +/- 2.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/331375/cmap_HighResolution_491011201_491270401_4FGL_J1058.4+0133_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-07', energy_flux2='7.89e-05', photon_flux_error='4.99e-08', dlogl='1.90e-02', energy_flux='8.16e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-02 22:42:46.406549', photon_index_error2='0.25', photon_index2='2.24', ts='45.50', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='0.71', time_epoch_completed='1630647766.41', return_code='0', job_id='331375', GAL2='1.37', EG2='0.71', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='6.38e-08', ts2='45.30', photon_index='2.19' WHERE bin_id='971' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:42:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 331375: <4FGL_J1058.4+0133_daily_bin971> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin971> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Sep  2 22:26:32 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:26:58 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:26:58 2021
Terminated at Thu Sep  2 22:42:47 2021
Results reported at Thu Sep  2 22:42:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin971 164.624 1.5641 491011201 491270401 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 :                                   696.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            975 sec.

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

