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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin693
RA = 164.624, Dec = 1.5641
tmin = 418953601, tmax = 419212801
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='330133', job_status='RUN', time_executed='2021-09-02 22:25:53.834700', time_epoch_executed='1630646753.83' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330133/ft1_4FGL_J1058.4+0133_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330133/ft2_4FGL_J1058.4+0133_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330133/ft1_4FGL_J1058.4+0133_daily_bin693.fits outfile=/scratch/kocevski/330133/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin693.fits ra=164.624 dec=1.5641 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.61
user 5.34
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330133/ft1_filtered_4FGL_J1058.4+0133_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/330133/ft2_4FGL_J1058.4+0133_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/330133/ltcube_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.fits outfile=/scratch/kocevski/330133/expmap_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.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/330133/ltcube_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.fits
.....................!
real 192.06
user 186.39
sys 4.95

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/330133/ft1_filtered_4FGL_J1058.4+0133_daily_bin693.fits scfile=/scratch/kocevski/330133/ft2_4FGL_J1058.4+0133_daily_bin693.fits outfile=/scratch/kocevski/330133/cmap_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.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.70
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330133/ft1_filtered_4FGL_J1058.4+0133_daily_bin693.fits scfile=/scratch/kocevski/330133/ft2_4FGL_J1058.4+0133_daily_bin693.fits outfile=/scratch/kocevski/330133/cmap_HighResolution_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.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.65
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    103.88       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13657E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.349       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43964E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7112       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.122       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80134       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1850       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=   4873.830     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2390 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8841        15.136        .10439E-05    .84377E-04
   2  Prefactor     103.86        98.082       -.14162E-05    .11026E-03
   3  Prefactor     .10000E-03    99.698       -.89843E-06** at limit **
   4  Prefactor     .10000E-03    21.828       -.88313E-06** at limit **
   5  norm          5.6280        2.3769        .97885E-08    .48405E-03
   6  Prefactor     1.2039        9.5405       -.24499E-05   -.74980E-04
   7  Prefactor     1.8476        3.6658       -.37555E-06    .57629E-05
   8  Prefactor     24.349        14.182        .43823E-06    .11287E-03
   9  norm          1.9202        .92522        .27245E-06    .50836E-03
  10  Prefactor     .10000E-03    75.438        .90845E-05** at limit **
  11  norm          1.2395        1.1068       -.17353E-07    .25907E-04
  12  Prefactor     10.999        15.884       -.41285E-07    .11481E-04
  13  Prefactor     .10000E-03    19.596        .12237E-05** at limit **
  14  Prefactor     .10000E-03    14.801       -.32264E-06** at limit **
  15  Prefactor     5.7118        6.6591       -.33976E-06    .62715E-04
  16  norm          .10000E-03    4.0643        .99775E-08** at limit **
  17  Prefactor     .10000E-03    3.7415       -.47016E-07** at limit **
  18  norm          .10000E-03    10.094        .11404E-07** at limit **
  19  Prefactor     4.8732        3.5573       -.77211E-07    .14330E-04
  20  Prefactor     48.126        37.693        .11245E-06   -.19811E-04
  21  Normalizat    .80101        .25657        .69555E-06    .14488E-03
  22  Prefactor     1.1853        .19288        .20717E-06    .11485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.88413
  Prefactor  = 103.859
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.628
  Prefactor  = 1.20387
  Prefactor  = 1.84764
  Prefactor  = 24.349
  norm       = 1.92019
  Prefactor  = 0.000100001
  norm       = 1.23949
  Prefactor  = 10.9993
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.71178
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.87325
  Prefactor  = 48.1257
  Normalizat = 0.801007
  Prefactor  = 1.18529
 **********
 **   18 **HESSE 
 **********

 FCN=   4873.830     FROM HESSE     STATUS=OK           346 CALLS     2736 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8841        15.098        .16548E-03   -1.5223    
   2  Prefactor     103.86        96.977        .39451E-04   -1.3666    
   3  Prefactor     .10000E-03    99.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6280        2.3719        .65619E-04   -1.5233    
   6  Prefactor     1.2039        9.3308        .39964E-03   -1.5489    
   7  Prefactor     1.8476        3.6180        .17276E-03   -1.5436    
   8  Prefactor     24.349        14.103        .81179E-04   -1.4721    
   9  norm          1.9202        .92365        .43179E-04   -1.5431    
  10  Prefactor     .10000E-03    74.506        .40330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2395        1.1080        .40292E-04   -1.5485    
  12  Prefactor     10.999        15.880        .12080E-03   -1.5045    
  13  Prefactor     .10000E-03    19.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7118        6.6503        .16808E-03   -1.5230    
  16  norm          .10000E-03    4.0690        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7945        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8732        3.5589        .10636E-03   -1.5266    
  20  Prefactor     48.126        37.673        .57804E-04   -1.4319    
  21  Normalizat    .80101        .29834        .33457E-03   -1.0003    
  22  Prefactor     1.1853        .22577        .22833E-03   -.86785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12967e-10
Minuit parameter uncertainties:
  1  15.1073
  2  97.1258
  3  0.000610598
  4  0.000209635
  5  2.37195
  6  6.70434
  7  3.61842
  8  14.1049
  9  0.923662
  10  0.000663303
  11  1.10805
  12  15.8865
  13  0.00029007
  14  4.82949e-05
  15  6.65121
  16  2.29269e-06
  17  3.09601e-07
  18  2.99753e-06
  19  3.55909
  20  37.6916
  21  0.298954
  22  0.225955
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.920e+00  9.237e-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.185e+00  2.260e-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.010e-01  2.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.47
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 6.69e-08
Energy Flux (Fixed Index): 5.99e-05 +/- 2.88e-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) = 4871.81741074
delta logL = 2.01295382218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4871.80704977
delta logL = 2.02331479167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92872       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2053       1.0000          .0000       5.0000    
     3 'Normalizat'    .61999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2810       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=   4871.807     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92888        4.0982        .50877E-02    .19829E-02
   2  alpha         3.2052        3.7981        .14814        .10547E-03
   3  Normalizat    .62002        .10957        .84667E-01    .79623E-05
   4  Prefactor     1.2810        .83154E-01    .49885E-01   -.88120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.928879
  alpha      = 3.20525
  Normalizat = 0.620024
  Prefactor  = 1.28096
 **********
 **   18 **HESSE 
 **********

 FCN=   4871.807     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92888        .89638        .22615E-04   -1.5515    
   2  alpha         3.2052        .65633        .63655E-02    .28598    
   3  Normalizat    .62002        .29139        .37500E-03   -1.0714    
   4  Prefactor     1.2810        .23187        .22052E-03   -.83875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0695e-11
Minuit parameter uncertainties:
  1  0.896389
  2  0.664809
  3  0.292115
  4  0.232059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330133': 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) = 4871.80704975
delta logL = 2.02331481963

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.289e-01  8.964e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  3.205e+00  6.648e-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.281e+00  2.321e-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:  6.200e-01  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.04
Ra Dec: 164.624 1.564
Photon Index (Free Index): 3.21 +/- 0.66
Photon Flux (Free Index): 2.92e-07 +/- 1.18e-07
Energy Flux (Free Index): 5.50e-05 +/- 2.06e-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/330133/cmap_HighResolution_418953601_419212801_4FGL_J1058.4+0133_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='5.50e-05', photon_flux_error='6.69e-08', dlogl='2.02e+00', energy_flux='5.99e-05', photon_flux2='2.92e-07', job_status='DONE', time_completed='2021-09-02 22:35:14.785427', photon_index_error2='0.66', photon_index2='3.21', ts='7.47', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='0.80', time_epoch_completed='1630647314.79', return_code='0', job_id='330133', GAL2='1.28', EG2='0.62', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='1.18e-07', ts2='12.04', photon_index='2.19' WHERE bin_id='693' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:35:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 330133: <4FGL_J1058.4+0133_daily_bin693> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin693> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:21:54 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:21:59 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:21:59 2021
Terminated at Thu Sep  2 22:35:15 2021
Results reported at Thu Sep  2 22:35:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin693 164.624 1.5641 418953601 419212801 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 :                                   551.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            801 sec.

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

