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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin976
RA = 164.624, Dec = 1.5641
tmin = 492307201, tmax = 492566401
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='331380', job_status='RUN', time_executed='2021-09-02 22:30:26.776192', time_epoch_executed='1630647026.78' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331380/ft1_4FGL_J1058.4+0133_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331380/ft2_4FGL_J1058.4+0133_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331380/ft1_4FGL_J1058.4+0133_daily_bin976.fits outfile=/scratch/kocevski/331380/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin976.fits ra=164.624 dec=1.5641 rad=12.0 tmin=492307201.0 tmax=492566401.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.97
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331380/ft1_filtered_4FGL_J1058.4+0133_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/331380/ft2_4FGL_J1058.4+0133_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/331380/ltcube_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.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/331380/ft2_4FGL_J1058.4+0133_daily_bin976.fits
.....................!
real 16.85
user 16.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331380/ft1_filtered_4FGL_J1058.4+0133_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/331380/ft2_4FGL_J1058.4+0133_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/331380/ltcube_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.fits outfile=/scratch/kocevski/331380/expmap_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.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/331380/ltcube_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.fits
.....................!
real 194.34
user 186.43
sys 4.65

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/331380/ft1_filtered_4FGL_J1058.4+0133_daily_bin976.fits scfile=/scratch/kocevski/331380/ft2_4FGL_J1058.4+0133_daily_bin976.fits outfile=/scratch/kocevski/331380/cmap_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.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.56
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37257E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17643E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12386E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31272E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.201       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.320       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9372       1.0000         .10000E-03   10000.    
    16 'norm      '    .25888E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3199       1.0000         .10000E-03   10000.    
    18 'norm      '    24.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2085       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=   5184.039     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2471 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    8.6273        .32064E-05** at limit **
   2  Prefactor     .10000E-03    330.98        .44211E-06** at limit **
   3  Prefactor     .10000E-03    63.437       -.29703E-05** at limit **
   4  Prefactor     .10000E-03    10.816        .43795E-07** at limit **
   5  norm          6.3691        2.3057        .63997E-07   -.58387E-03
   6  Prefactor     .10000E-03    6.0668        .61341E-06** at limit **
   7  Prefactor     4.3915        4.9620        .19708E-06    .21949E-03
   8  Prefactor     .10017E-03    8.7536       -.27450E-05** at limit **
   9  norm          1.2218        .68812       -.49135E-06    .14703E-02
  10  Prefactor     12.215        10.665        .97014E-05    .43113E-03
  11  norm          3.2227        2.0426        .13068E-06   -.14122E-03
  12  Prefactor     28.021        24.888       -.31188E-06    .93194E-04
  13  Prefactor     32.315        21.966       -.49700E-06    .46422E-05
  14  Prefactor     .10000E-03    6.6564        .97860E-07** at limit **
  15  Prefactor     1.9363        5.3111       -.32683E-06   -.59653E-03
  16  norm          .10003E-03    8.5843       -.12774E-06** at limit **
  17  Prefactor     7.3067        8.4011       -.32817E-05   -.31212E-03
  18  norm          24.072        29.076       -.74238E-05   -.32183E-04
  19  Prefactor     .10000E-03    1.2148       -.30579E-07** at limit **
  20  Prefactor     10.085        59.169        .35537E-04    .23608E-04
  21  Normalizat    .81520        .25198       -.37556E-05    .78405E-04
  22  Prefactor     1.2085        .18649        .15264E-06   -.27951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.36909
  Prefactor  = 0.0001
  Prefactor  = 4.39155
  Prefactor  = 0.000100173
  norm       = 1.22185
  Prefactor  = 12.2149
  norm       = 3.22267
  Prefactor  = 28.0212
  Prefactor  = 32.3151
  Prefactor  = 0.0001
  Prefactor  = 1.93629
  norm       = 0.00010003
  Prefactor  = 7.30665
  norm       = 24.0717
  Prefactor  = 0.0001
  Prefactor  = 10.0855
  Normalizat = 0.815204
  Prefactor  = 1.20846
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.039     FROM HESSE     STATUS=OK           348 CALLS     2819 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    49.243        .40274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    334.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3691        2.2884        .61958E-04   -1.5203    
   6  Prefactor     .10000E-03    19.570        .33455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3915        4.7999        .15253E-03   -1.5289    
   8  Prefactor     .10017E-03    136.42        .37468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2218        .68445        .40879E-04   -1.5487    
  10  Prefactor     12.215        10.578        .11468E-03   -1.5009    
  11  norm          3.2227        2.0406        .78015E-04   -1.5349    
  12  Prefactor     28.021        24.847        .75678E-04   -1.4649    
  13  Prefactor     32.315        21.804        .70482E-04   -1.4570    
  14  Prefactor     .10000E-03    6.6617        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9363        5.1805        .24969E-03   -1.5430    
  16  norm          .10003E-03    22.756        .38917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3067        8.2267        .14825E-03   -1.5167    
  18  norm          24.072        29.027        .81666E-04   -1.4726    
  19  Prefactor     .10000E-03    1.2359        .77459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.085        58.112        .12666E-03   -1.5073    
  21  Normalizat    .81520        .28868        .33434E-03   -.99507    
  22  Prefactor     1.2085        .21988        .22659E-03   -.86071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16981e-08
Minuit parameter uncertainties:
  1  0.00899557
  2  0.000473592
  3  0.000105085
  4  1.32066e-05
  5  2.28839
  6  0.000122712
  7  4.80032
  8  0.00972624
  9  0.684459
  10  10.5795
  11  2.04069
  12  24.8563
  13  21.8096
  14  2.18002e-05
  15  5.1817
  16  0.00165868
  17  8.22801
  18  29.0437
  19  2.75707e-06
  20  48.4899
  21  0.289224
  22  0.220047
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.222e+00  6.845e-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.208e+00  2.200e-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:  8.152e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.44
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.85e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 2.13e-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) = 5183.27822417
delta logL = 0.760654661787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5183.26459567
delta logL = 0.774283158884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0840       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6204       1.0000          .0000       5.0000    
     3 'Normalizat'    .84797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2004       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=   5183.265     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0841        .63027        .96850E-02   -.99958E-04
   2  alpha         1.6205        .35351        .26137       -.29376E-04
   3  Normalizat    .84797        .22794        .74257E-01    .18438E-04
   4  Prefactor     1.2004        .18493        .51441E-01    .19316E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0841
  alpha      = 1.62046
  Normalizat = 0.84797
  Prefactor  = 1.20044
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.265     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0841        .74724        .42282E-04   -1.5500    
   2  alpha         1.6205        .45001        .10610E-01   -.35951    
   3  Normalizat    .84797        .26811        .32864E-03   -.98313    
   4  Prefactor     1.2004        .21812        .22742E-03   -.86318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21533e-10
Minuit parameter uncertainties:
  1  0.747248
  2  0.452834
  3  0.268527
  4  0.218288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331380': 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) = 5183.26459565
delta logL = 0.77428318274

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.084e+00  7.472e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.620e+00  4.528e-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.200e+00  2.183e-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:  8.480e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.02
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.62 +/- 0.45
Photon Flux (Free Index): 4.56e-08 +/- 3.95e-08
Energy Flux (Free Index): 6.90e-05 +/- 5.95e-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/331380/cmap_HighResolution_492307201_492566401_4FGL_J1058.4+0133_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.85e-08', energy_flux2='6.90e-05', photon_flux_error='4.96e-08', dlogl='7.74e-01', energy_flux='3.81e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-02 22:40:02.076843', photon_index_error2='0.45', photon_index2='1.62', ts='13.44', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.95e-05', EG='0.82', time_epoch_completed='1630647602.08', return_code='0', job_id='331380', GAL2='1.20', EG2='0.85', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='3.95e-08', ts2='15.02', photon_index='2.19' WHERE bin_id='976' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:40:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 331380: <4FGL_J1058.4+0133_daily_bin976> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin976> 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) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:27: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:27:02 2021
Terminated at Thu Sep  2 22:40:02 2021
Results reported at Thu Sep  2 22:40:02 2021

Your job looked like:

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

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

