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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin41
RA = 164.624, Dec = 1.5641
tmin = 249955201, tmax = 250214401
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='325416', job_status='RUN', time_executed='2021-09-02 22:08:26.586878', time_epoch_executed='1630645706.59' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325416/ft1_4FGL_J1058.4+0133_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325416/ft2_4FGL_J1058.4+0133_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325416/ft1_4FGL_J1058.4+0133_daily_bin41.fits outfile=/scratch/kocevski/325416/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin41.fits ra=164.624 dec=1.5641 rad=12.0 tmin=249955201.0 tmax=250214401.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.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325416/ft1_filtered_4FGL_J1058.4+0133_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/325416/ft2_4FGL_J1058.4+0133_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/325416/ltcube_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.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/325416/ft2_4FGL_J1058.4+0133_daily_bin41.fits
.....................!
real 15.29
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325416/ft1_filtered_4FGL_J1058.4+0133_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/325416/ft2_4FGL_J1058.4+0133_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/325416/ltcube_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.fits outfile=/scratch/kocevski/325416/expmap_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.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/325416/ltcube_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.fits
.....................!
real 192.62
user 186.76
sys 5.48

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/325416/ft1_filtered_4FGL_J1058.4+0133_daily_bin41.fits scfile=/scratch/kocevski/325416/ft2_4FGL_J1058.4+0133_daily_bin41.fits outfile=/scratch/kocevski/325416/cmap_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.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.59
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12261E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12050E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .35392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4017       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4934       1.0000         .10000E-03   10000.    
    11 'norm      '    .94388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32616E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.434       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0319       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0158       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=   6588.625     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2505 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.521        18.041        .79651E-06    .62397E-04
   2  Prefactor     .10000E-03    55.080       -.18570E-05** at limit **
   3  Prefactor     .10000E-03    39.159       -.25144E-05** at limit **
   4  Prefactor     .10000E-03    27.853       -.32070E-06** at limit **
   5  norm          .35332        1.0716        .82195E-06    .16175E-03
   6  Prefactor     .10000E-03    2.3052       -.39133E-07** at limit **
   7  Prefactor     1.8272        1.8783        .14588E-06    .25719E-04
   8  Prefactor     .10000E-03    4.2134       -.17544E-07** at limit **
   9  norm          1.4018        .56508        .34357E-07    .21252E-04
  10  Prefactor     2.4933        6.0043        .70445E-06    .12838E-04
  11  norm          .94448        1.4058        .50682E-06    .31196E-03
  12  Prefactor     .21199E-03    16.581       -.88556E-06** at limit **
  13  Prefactor     .10000E-03    6.3002       -.15823E-07** at limit **
  14  Prefactor     .10000E-03    4.6117       -.16694E-07** at limit **
  15  Prefactor     .10000E-03    1.2147        .89726E-07** at limit **
  16  norm          .10000E-03    4.0198       -.85933E-08** at limit **
  17  Prefactor     .10041E-03    2.5854        .17307E-05** at limit **
  18  norm          .10000E-03    37.440        .93286E-05** at limit **
  19  Prefactor     1.7669        1.8128        .14428E-06   -.14483E-03
  20  Prefactor     44.357        29.040        .77257E-07   -.39459E-03
  21  Normalizat    1.0321        .18918       -.36357E-05   -.32933E-03
  22  Prefactor     1.0157        .14869       -.56097E-06   -.55740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.5209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.353317
  Prefactor  = 0.0001
  Prefactor  = 1.82724
  Prefactor  = 0.0001
  norm       = 1.40177
  Prefactor  = 2.49326
  norm       = 0.944481
  Prefactor  = 0.000211986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100407
  norm       = 0.0001
  Prefactor  = 1.76686
  Prefactor  = 44.3575
  Normalizat = 1.03208
  Prefactor  = 1.01574
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.625     FROM HESSE     STATUS=OK           344 CALLS     2849 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.521        18.009        .48482E-04   -1.4051    
   2  Prefactor     .10000E-03    55.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .35332        1.0693        .14085E-03   -1.5589    
   6  Prefactor     .10000E-03    2.3166        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8272        1.8824        .10933E-03   -1.5438    
   8  Prefactor     .10000E-03    4.2877        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4018        .56938        .34808E-04   -1.5471    
  10  Prefactor     2.4933        6.0442        .25884E-03   -1.5392    
  11  norm          .94448        1.3709        .11162E-03   -1.5514    
  12  Prefactor     .21199E-03    24.791        .90703E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6542        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2221        .87373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0470        .15886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10041E-03    21.808        .22168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    36.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7669        1.7995        .10648E-03   -1.5442    
  20  Prefactor     44.357        29.202        .60145E-04   -1.4375    
  21  Normalizat    1.0321        .22022        .27201E-03   -.91963    
  22  Prefactor     1.0157        .17604        .22555E-03   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04808e-08
Minuit parameter uncertainties:
  1  18.0102
  2  4.44256e-05
  3  0.000125449
  4  7.09476e-05
  5  1.06934
  6  7.15695e-06
  7  1.88245
  8  2.24623e-05
  9  0.56938
  10  6.04568
  11  1.37095
  12  0.105423
  13  1.49958e-05
  14  1.07713e-05
  15  2.76483e-06
  16  1.33545e-06
  17  0.00596098
  18  4.19587e-05
  19  1.79956
  20  29.2114
  21  0.220411
  22  0.176139
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.402e+00  5.694e-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.016e+00  1.761e-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.032e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.20
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.12e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 1.78e-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) = 6588.57254757
delta logL = 0.0520321235363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6588.56815209
delta logL = 0.0564276046152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4719       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0770       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       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=   6588.568     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4719        .58501        .36096E-04    .62582E-03
   2  alpha         2.0770        .33300        .93680E-02    .14259E-04
   3  Normalizat    1.0416        .21413        .27096E-03   -.80811E-04
   4  Prefactor     1.0109        .17614        .22603E-03   -.22792E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47191
  alpha      = 2.07703
  Normalizat = 1.04156
  Prefactor  = 1.01088
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.568     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4719        .58104        .14438E-05   -1.5465    
   2  alpha         2.0770        .33065        .37472E-03   -.17000    
   3  Normalizat    1.0416        .21427        .10838E-04   -.91651    
   4  Prefactor     1.0109        .17627        .45207E-04   -.92368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00975e-11
Minuit parameter uncertainties:
  1  0.581037
  2  0.331647
  3  0.214449
  4  0.176373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325416': 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) = 6588.56815209
delta logL = 0.0564276072537

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.472e+00  5.810e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.077e+00  3.316e-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.011e+00  1.764e-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.042e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.33
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.08 +/- 0.33
Photon Flux (Free Index): 9.34e-08 +/- 4.30e-08
Energy Flux (Free Index): 4.86e-05 +/- 2.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/325416/cmap_HighResolution_249955201_250214401_4FGL_J1058.4+0133_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='4.86e-05', photon_flux_error='4.12e-08', dlogl='5.64e-02', energy_flux='4.37e-05', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-09-02 22:18:52.080955', photon_index_error2='0.33', photon_index2='2.08', ts='19.20', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='1.03', time_epoch_completed='1630646332.08', return_code='0', job_id='325416', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.30e-08', ts2='19.33', photon_index='2.19' WHERE bin_id='41' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 325416: <4FGL_J1058.4+0133_daily_bin41> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin41> 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) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:08:14 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:14 2021
Terminated at Thu Sep  2 22:18:52 2021
Results reported at Thu Sep  2 22:18:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin41 164.624 1.5641 249955201 250214401 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 :                                   621.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            738 sec.

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

