/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 199 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin169
RA = 164.624, Dec = 1.5641
tmin = 283132801, tmax = 283392001
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='325621', job_status='RUN', time_executed='2021-09-02 22:13:24.347333', time_epoch_executed='1630646004.35' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325621/ft1_4FGL_J1058.4+0133_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325621/ft1_4FGL_J1058.4+0133_daily_bin169.fits outfile=/scratch/kocevski/325621/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin169.fits ra=164.624 dec=1.5641 rad=12.0 tmin=283132801.0 tmax=283392001.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 4.03
user 3.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325621/ft1_filtered_4FGL_J1058.4+0133_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/325621/ltcube_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.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/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits
.....................!
real 16.07
user 15.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325621/ft1_filtered_4FGL_J1058.4+0133_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/325621/ltcube_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.fits outfile=/scratch/kocevski/325621/expmap_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.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/325621/ltcube_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.fits
.....................!
real 192.78
user 188.08
sys 4.25

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/325621/ft1_filtered_4FGL_J1058.4+0133_daily_bin169.fits scfile=/scratch/kocevski/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits outfile=/scratch/kocevski/325621/cmap_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325621/ft1_filtered_4FGL_J1058.4+0133_daily_bin169.fits scfile=/scratch/kocevski/325621/ft2_4FGL_J1058.4+0133_daily_bin169.fits outfile=/scratch/kocevski/325621/cmap_HighResolution_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10112E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .62069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3128       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50991E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11296E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9275       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76208       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1920       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=   5918.210     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2357 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7914       -.42212E-07** at limit **
   2  Prefactor     .10000E-03    43.056        .14979E-05** at limit **
   3  Prefactor     .10000E-03    30.206       -.50577E-06** at limit **
   4  Prefactor     .10000E-03    9.8555        .88146E-07** at limit **
   5  norm          .62065        .76923       -.59258E-07   -.70109E-05
   6  Prefactor     3.0329        7.2696        .54808E-05   -.42482E-04
   7  Prefactor     4.1337        3.7755        .47864E-06    .75785E-04
   8  Prefactor     .10000E-03    8.3853       -.97891E-06** at limit **
   9  norm          1.4937        .75199        .27051E-07    .10080E-02
  10  Prefactor     6.3473        10.229        .47985E-06   -.59804E-04
  11  norm          .10000E-03    .71140       -.86477E-07** at limit **
  12  Prefactor     .10000E-03    12.458       -.16764E-06** at limit **
  13  Prefactor     20.078        18.876       -.22261E-05    .10497E-04
  14  Prefactor     .10000E-03    5.1368        .79459E-06** at limit **
  15  Prefactor     .10000E-03    2.7447        .32018E-06** at limit **
  16  norm          23.064        11.247        .27612E-06   -.25469E-04
  17  Prefactor     .10000E-03    1.8979        .13812E-06** at limit **
  18  norm          .10000E-03    9.2483        .18427E-06** at limit **
  19  Prefactor     1.9280        2.0476        .10988E-06   -.10562E-05
  20  Prefactor     .10000E-03    10.876       -.42547E-06** at limit **
  21  Normalizat    .76187        .20534       -.15772E-05    .32401E-04
  22  Prefactor     1.1921        .16255        .12948E-06   -.25575E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.620649
  Prefactor  = 3.03289
  Prefactor  = 4.13366
  Prefactor  = 0.0001
  norm       = 1.49375
  Prefactor  = 6.34727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.92801
  Prefactor  = 0.000100001
  Normalizat = 0.761865
  Prefactor  = 1.19208
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.210     FROM HESSE     STATUS=OK           342 CALLS     2699 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7960        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.093        .20755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .62065        .74054        .72901E-03   -1.5550    
   6  Prefactor     3.0329        7.2824        .11656E-02   -1.5360    
   7  Prefactor     4.1337        3.7773        .13448E-03   -1.5301    
   8  Prefactor     .10000E-03    8.6086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4937        .77237        .38155E-04   -1.5464    
  10  Prefactor     6.3473        10.543        .15976E-03   -1.5204    
  11  norm          .10000E-03    .73704        .12659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.518        .21148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.078        18.893        .89429E-04   -1.4811    
  14  Prefactor     .10000E-03    5.1779        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7838        .12436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.064        11.201        .83363E-04   -1.4747    
  17  Prefactor     .10000E-03    1.9145        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9280        2.0311        .10887E-03   -1.5430    
  20  Prefactor     .10000E-03    41.771        .49204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76187        .23355        .31145E-03   -1.0150    
  22  Prefactor     1.1921        .18641        .21018E-03   -.86575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4288e-10
Minuit parameter uncertainties:
  1  4.81155e-06
  2  8.94856e-05
  3  2.81916e-05
  4  1.70807e-05
  5  0.740547
  6  7.28457
  7  3.77752
  8  8.72287e-05
  9  0.772376
  10  10.5461
  11  2.8398e-06
  12  3.13015e-05
  13  18.8989
  14  9.12899e-05
  15  2.52822e-05
  16  11.202
  17  1.01256e-05
  18  3.35194e-06
  19  2.03117
  20  0.000444445
  21  0.233856
  22  0.186513
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.494e+00  7.724e-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.192e+00  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.619e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.22
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 5.60e-08
Energy Flux (Fixed Index): 4.66e-05 +/- 2.41e-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) = 5918.1641057
delta logL = 0.046042771537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5918.16309524
delta logL = 0.0470532233467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5081       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0732       1.0000          .0000       5.0000    
     3 'Normalizat'    .77264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1884       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=   5918.163     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5082        13.609        .87097E-02    .25234E-03
   2  alpha         2.0733        3.3860        .25866        .15101E-04
   3  Normalizat    .77298        .16676        .69950E-01    .26488E-04
   4  Prefactor     1.1882        .10643        .34911E-01    .25635E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5082
  alpha      = 2.07329
  Normalizat = 0.772983
  Prefactor  = 1.18818
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.163     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5082        .66183        .39980E-04   -1.5462    
   2  alpha         2.0733        .38378        .10180E-01   -.17152    
   3  Normalizat    .77298        .22707        .30954E-03   -1.0108    
   4  Prefactor     1.1882        .18635        .21057E-03   -.86696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47249e-13
Minuit parameter uncertainties:
  1  0.661831
  2  0.385348
  3  0.227345
  4  0.186455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325621': 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) = 5918.1630939
delta logL = 0.0470545630897

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.508e+00  6.618e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.073e+00  3.853e-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.188e+00  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.730e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.38
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.07 +/- 0.39
Photon Flux (Free Index): 9.53e-08 +/- 5.93e-08
Energy Flux (Free Index): 4.99e-05 +/- 2.55e-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/325621/cmap_HighResolution_283132801_283392001_4FGL_J1058.4+0133_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='4.99e-05', photon_flux_error='5.60e-08', dlogl='4.71e-02', energy_flux='4.66e-05', photon_flux2='9.53e-08', job_status='DONE', time_completed='2021-09-02 22:23:15.060657', photon_index_error2='0.39', photon_index2='2.07', ts='17.22', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.76', time_epoch_completed='1630646595.06', return_code='0', job_id='325621', GAL2='1.19', EG2='0.77', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='5.93e-08', ts2='17.38', photon_index='2.19' WHERE bin_id='169' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 325621: <4FGL_J1058.4+0133_daily_bin169> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin169> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 22:06:49 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:09:32 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:09:32 2021
Terminated at Thu Sep  2 22:23:16 2021
Results reported at Thu Sep  2 22:23:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin169 164.624 1.5641 283132801 283392001 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 :                                   585.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            987 sec.

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

