/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 15 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 = 7677
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin23
RA = 164.624, Dec = 1.5641
tmin = 245289601, tmax = 245548801
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='325376', job_status='RUN', time_executed='2021-09-02 22:08:25.942878', time_epoch_executed='1630645705.94' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325376/ft1_4FGL_J1058.4+0133_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325376/ft1_4FGL_J1058.4+0133_daily_bin23.fits outfile=/scratch/kocevski/325376/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin23.fits ra=164.624 dec=1.5641 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.51
user 1.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325376/ft1_filtered_4FGL_J1058.4+0133_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/325376/ltcube_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.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/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits
.....................!
real 19.47
user 19.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325376/ft1_filtered_4FGL_J1058.4+0133_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/325376/ltcube_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.fits outfile=/scratch/kocevski/325376/expmap_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.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/325376/ltcube_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.fits
.....................!
real 193.23
user 187.75
sys 4.84

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/325376/ft1_filtered_4FGL_J1058.4+0133_daily_bin23.fits scfile=/scratch/kocevski/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits outfile=/scratch/kocevski/325376/cmap_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325376/ft1_filtered_4FGL_J1058.4+0133_daily_bin23.fits scfile=/scratch/kocevski/325376/ft2_4FGL_J1058.4+0133_daily_bin23.fits outfile=/scratch/kocevski/325376/cmap_HighResolution_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.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.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.674       1.0000         .10000E-03   10000.    
     5 'norm      '    .81992E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.964       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6531       1.0000         .10000E-03   10000.    
    18 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.464       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98262       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=   6383.351     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2381 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.163        22.403       -.17038E-05    .97265E-05
   2  Prefactor     .10000E-03    29.520        .22402E-06** at limit **
   3  Prefactor     55.950        95.961        .85568E-05    .10866E-04
   4  Prefactor     21.667        27.040        .40541E-06    .14755E-04
   5  norm          .70016E-01    .67425        .19752E-07   -.17059E-04
   6  Prefactor     .10000E-03    1.5701        .23585E-07** at limit **
   7  Prefactor     3.4525        2.8920       -.49043E-08   -.35190E-04
   8  Prefactor     12.961        9.1306       -.34700E-06   -.39854E-04
   9  norm          1.4922        .59627        .21225E-07   -.94601E-04
  10  Prefactor     .10000E-03    2.9158        .27996E-07** at limit **
  11  norm          .10000E-03    .39734       -.40115E-07** at limit **
  12  Prefactor     13.678        20.913        .25782E-05    .15312E-04
  13  Prefactor     .10000E-03    28.994        .99615E-06** at limit **
  14  Prefactor     15.028        10.351       -.81827E-06   -.98049E-04
  15  Prefactor     .10000E-03    4.4878        .19432E-06** at limit **
  16  norm          2.5853        6.9229        .55516E-05   -.59308E-04
  17  Prefactor     3.6543        4.4899        .18563E-06    .10321E-03
  18  norm          .10000E-03    28.938       -.17057E-05** at limit **
  19  Prefactor     1.4884        2.1177        .13402E-06   -.59403E-05
  20  Prefactor     23.467        25.544       -.59248E-06    .17610E-05
  21  Normalizat    1.0538        .20365        .52612E-06   -.47983E-04
  22  Prefactor     .98253        .16171       -.14345E-05   -.62163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1634
  Prefactor  = 0.0001
  Prefactor  = 55.9497
  Prefactor  = 21.6675
  norm       = 0.0700164
  Prefactor  = 0.0001
  Prefactor  = 3.45254
  Prefactor  = 12.9609
  norm       = 1.49221
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6775
  Prefactor  = 0.0001
  Prefactor  = 15.0282
  Prefactor  = 0.0001
  norm       = 2.58532
  Prefactor  = 3.65426
  norm       = 0.0001
  Prefactor  = 1.48837
  Prefactor  = 23.4673
  Normalizat = 1.05379
  Prefactor  = 0.982533
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.351     FROM HESSE     STATUS=OK           352 CALLS     2733 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.163        22.392        .72955E-04   -1.4609    
   2  Prefactor     .10000E-03    29.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.950        95.898        .53605E-04   -1.4211    
   4  Prefactor     21.667        27.016        .86035E-04   -1.4777    
   5  norm          .70016E-01    10.305        .12337E-02   -1.5655    
   6  Prefactor     .10000E-03    1.5747        .97756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4525        2.8857        .11824E-03   -1.5336    
   8  Prefactor     12.961        9.1380        .11125E-03   -1.4988    
   9  norm          1.4922        .59364        .37015E-04   -1.5464    
  10  Prefactor     .10000E-03    2.9220        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .40318        .49159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.678        20.984        .10826E-03   -1.4968    
  13  Prefactor     .10000E-03    29.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.028        10.346        .10332E-03   -1.4932    
  15  Prefactor     .10000E-03    4.6725        .32999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5853        6.9399        .12691E-02   -1.5386    
  17  Prefactor     3.6543        4.4695        .16589E-03   -1.5326    
  18  norm          .10000E-03    29.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4884        2.0952        .13197E-03   -1.5464    
  20  Prefactor     23.467        25.440        .82693E-04   -1.4739    
  21  Normalizat    1.0538        .24435        .27721E-03   -.91250    
  22  Prefactor     .98253        .19313        .23391E-03   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40241e-09
Minuit parameter uncertainties:
  1  22.3983
  2  5.40953e-05
  3  96.1643
  4  27.0314
  5  1.69794
  6  1.35271e-06
  7  2.88579
  8  9.13902
  9  0.593643
  10  2.23165e-06
  11  1.02506e-06
  12  20.9956
  13  6.20613e-05
  14  10.3469
  15  1.08204e-05
  16  6.94204
  17  4.46991
  18  0.000134376
  19  2.09534
  20  25.4516
  21  0.244607
  22  0.193268
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.492e+00  5.936e-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:  9.825e-01  1.933e-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.054e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.35
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.30e-08
Energy Flux (Fixed Index): 4.65e-05 +/- 1.85e-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) = 6383.08425289
delta logL = 0.266898498891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.07901952
delta logL = 0.27213186577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5264       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97150       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=   6383.079     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      228 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5264        1.4000        .86402E-02   -.23865E-03
   2  alpha         1.9197        .70944        .25780       -.61143E-05
   3  Normalizat    1.0808        .19985        .62024E-01    .12315E-04
   4  Prefactor     .97151        .16173        .45910E-01    .92116E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52641
  alpha      = 1.91972
  Normalizat = 1.08085
  Prefactor  = 0.971512
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.079     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5264        .64326        .39710E-04   -1.5461    
   2  alpha         1.9197        .36481        .10246E-01   -.23425    
   3  Normalizat    1.0808        .23529        .27433E-03   -.90369    
   4  Prefactor     .97151        .19157        .23518E-03   -.93685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89784e-12
Minuit parameter uncertainties:
  1  0.643265
  2  0.366193
  3  0.235522
  4  0.191699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325376': 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) = 6383.07901951
delta logL = 0.272131871564

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.526e+00  6.433e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.920e+00  3.662e-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:  9.715e-01  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:  1.081e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.87
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.92 +/- 0.37
Photon Flux (Free Index): 8.19e-08 +/- 4.88e-08
Energy Flux (Free Index): 5.84e-05 +/- 3.28e-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/325376/cmap_HighResolution_245289601_245548801_4FGL_J1058.4+0133_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='5.84e-05', photon_flux_error='4.30e-08', dlogl='2.72e-01', energy_flux='4.65e-05', photon_flux2='8.19e-08', job_status='DONE', time_completed='2021-09-02 22:18:47.128598', photon_index_error2='0.37', photon_index2='1.92', ts='16.35', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='1.05', time_epoch_completed='1630646327.13', return_code='0', job_id='325376', GAL2='0.97', EG2='1.08', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='4.88e-08', ts2='16.87', photon_index='2.19' WHERE bin_id='23' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 325376: <4FGL_J1058.4+0133_daily_bin23> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin23> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 22:06:31 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:08:02 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:08:02 2021
Terminated at Thu Sep  2 22:18:48 2021
Results reported at Thu Sep  2 22:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin23 164.624 1.5641 245289601 245548801 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 :                                   615.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            737 sec.

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

