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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin43
RA = 164.624, Dec = 1.5641
tmin = 250473601, tmax = 250732801
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='325419', job_status='RUN', time_executed='2021-09-02 22:08:39.558014', time_epoch_executed='1630645719.56' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325419

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325419/ft1_4FGL_J1058.4+0133_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325419/ft2_4FGL_J1058.4+0133_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325419/ft1_4FGL_J1058.4+0133_daily_bin43.fits outfile=/scratch/kocevski/325419/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin43.fits ra=164.624 dec=1.5641 rad=12.0 tmin=250473601.0 tmax=250732801.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.37
user 1.17
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325419/ft1_filtered_4FGL_J1058.4+0133_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/325419/ft2_4FGL_J1058.4+0133_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/325419/ltcube_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.fits outfile=/scratch/kocevski/325419/expmap_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.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/325419/ltcube_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.fits
.....................!
real 192.87
user 188.09
sys 4.41

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/325419/ft1_filtered_4FGL_J1058.4+0133_daily_bin43.fits scfile=/scratch/kocevski/325419/ft2_4FGL_J1058.4+0133_daily_bin43.fits outfile=/scratch/kocevski/325419/cmap_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325419/ft1_filtered_4FGL_J1058.4+0133_daily_bin43.fits scfile=/scratch/kocevski/325419/ft2_4FGL_J1058.4+0133_daily_bin43.fits outfile=/scratch/kocevski/325419/cmap_HighResolution_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.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.86
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37096E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7224       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6240       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1237       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0241       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7348       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6117       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7613       1.0000         .10000E-03   10000.    
    18 'norm      '    11.025       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.472       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1571       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67149       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7045.129     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     2821 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.536        17.614        .64557E-04   -.18854E-03
   2  Prefactor     .10000E-03    182.27        .18142E-02** at limit **
   3  Prefactor     .10006E-03    136.63        .17836    ** at limit **
   4  Prefactor     8.6869        25.669        .13572E-03    .92978E-05
   5  norm          .10000E-03    .34340        .94529E-04** at limit **
   6  Prefactor     .10000E-03    8.8112        .36285E-03** at limit **
   7  Prefactor     1.8803        2.1338        .12617E-03   -.13939E-03
   8  Prefactor     .10000E-03    5.0234        .18142E-02** at limit **
   9  norm          1.6240        .54485        .32911E-04   -.10901E-02
  10  Prefactor     9.1246        6.4750        .13269E-03   -.14994E-03
  11  norm          .10000E-03    .81121        .11297E-02** at limit **
  12  Prefactor     .10088E-03    85.800        .46184E-02** at limit **
  13  Prefactor     10.729        14.779        .12231E-03   -.80775E-04
  14  Prefactor     6.0272        9.8311        .16359E-03    .54206E-05
  15  Prefactor     5.7352        4.2299        .13525E-03   -.25755E-03
  16  norm          9.6140        8.3391        .12926E-03   -.12349E-03
  17  Prefactor     1.7621        5.9373        .27664E-03    .15033E-03
  18  norm          11.019        19.800        .12066E-03   -.10176E-03
  19  Prefactor     3.5490        2.0803        .88614E-04   -.84033E-04
  20  Prefactor     12.471        21.977        .11343E-03   -.81886E-04
  21  Normalizat    1.1571        .19208        .23943E-03   -.37775E-03
  22  Prefactor     .67137        .14860        .24389E-03   -.24770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5361
  Prefactor  = 0.000100003
  Prefactor  = 0.000100061
  Prefactor  = 8.68686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88028
  Prefactor  = 0.0001
  norm       = 1.62403
  Prefactor  = 9.12456
  norm       = 0.0001
  Prefactor  = 0.000100881
  Prefactor  = 10.7286
  Prefactor  = 6.02723
  Prefactor  = 5.73518
  norm       = 9.61399
  Prefactor  = 1.76209
  norm       = 11.0194
  Prefactor  = 3.54905
  Prefactor  = 12.4705
  Normalizat = 1.15707
  Prefactor  = 0.671375
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.129     FROM HESSE     STATUS=OK           330 CALLS     3151 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.536        17.778        .12911E-04   -1.4466    
   2  Prefactor     .10000E-03    182.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    172.20        .16218       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6869        26.285        .54289E-05   -1.5118    
   5  norm          .10000E-03    .34340        .18906E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8118        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8803        2.1338        .50468E-05   -1.5434    
   8  Prefactor     .10000E-03    5.0272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6240        .54485        .65821E-05   -1.5453    
  10  Prefactor     9.1246        6.4749        .53075E-05   -1.5104    
  11  norm          .10000E-03    .81296        .22595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10088E-03    87.525        .92367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.729        14.776        .48923E-05   -1.5053    
  14  Prefactor     6.0272        9.8286        .65437E-05   -1.5217    
  15  Prefactor     5.7352        4.2288        .54101E-05   -1.5229    
  16  norm          9.6140        8.3353        .51704E-05   -1.5088    
  17  Prefactor     1.7621        5.9223        .11066E-04   -1.5442    
  18  norm          11.019        19.777        .48264E-05   -1.5044    
  19  Prefactor     3.5490        2.0802        .35446E-05   -1.5331    
  20  Prefactor     12.471        21.963        .45371E-05   -1.5002    
  21  Normalizat    1.1571        .19218        .47887E-04   -.87940    
  22  Prefactor     .67137        .14873        .97558E-05   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04626e-08
Minuit parameter uncertainties:
  1  17.7804
  2  0.00139315
  3  0.00652332
  4  26.3195
  5  5.98444e-07
  6  2.84787e-05
  7  2.13384
  8  2.45461e-05
  9  0.544855
  10  6.47544
  11  7.31524e-06
  12  0.0175883
  13  14.7809
  14  9.83127
  15  4.22905
  16  8.33635
  17  5.92425
  18  19.7891
  19  2.08029
  20  21.9769
  21  0.1923
  22  0.148813
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.624e+00  5.449e-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:  6.714e-01  1.488e-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.157e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.41
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 3.95e-08
Energy Flux (Fixed Index): 5.06e-05 +/- 1.70e-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) = 7043.37366166
delta logL = 1.75540583358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7043.37337086
delta logL = 1.75569663814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6790       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65559       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=   7043.373     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7172        .58688        .80160E-02    .14442E-02
   2  alpha         1.6790        .24102        .19498       -.10062E-03
   3  Normalizat    1.1963        .15995        .53426E-01    .12125E-03
   4  Prefactor     .65559        .12759        .41807E-01    .18942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71723
  alpha      = 1.67902
  Normalizat = 1.19628
  Prefactor  = 0.655594
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.373     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7172        .60460        .35943E-04   -1.5446    
   2  alpha         1.6790        .25971        .82082E-02   -.33460    
   3  Normalizat    1.1963        .18441        .23623E-03   -.86718    
   4  Prefactor     .65559        .14704        .24673E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13017e-10
Minuit parameter uncertainties:
  1  0.604599
  2  0.260232
  3  0.184509
  4  0.14713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325419': 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) = 7043.37337086
delta logL = 1.75569663951

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.717e+00  6.046e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.679e+00  2.602e-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:  6.556e-01  1.471e-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.196e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.15
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.68 +/- 0.26
Photon Flux (Free Index): 7.50e-08 +/- 3.29e-08
Energy Flux (Free Index): 9.66e-05 +/- 5.25e-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/325419/cmap_HighResolution_250473601_250732801_4FGL_J1058.4+0133_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='9.66e-05', photon_flux_error='3.95e-08', dlogl='1.76e+00', energy_flux='5.06e-05', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-09-02 22:19:51.016769', photon_index_error2='0.26', photon_index2='1.68', ts='35.41', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='5.25e-05', EG='1.16', time_epoch_completed='1630646391.02', return_code='0', job_id='325419', GAL2='0.66', EG2='1.20', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.29e-08', ts2='39.15', photon_index='2.19' WHERE bin_id='43' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:19:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 325419: <4FGL_J1058.4+0133_daily_bin43> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin43 164.624 1.5641 250473601 250732801 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 :                                   666.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            797 sec.

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

