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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin737
RA = 164.624, Dec = 1.5641
tmin = 430358401, tmax = 430617601
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='330181', job_status='RUN', time_executed='2021-09-02 22:25:00.018561', time_epoch_executed='1630646700.02' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330181/ft1_4FGL_J1058.4+0133_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330181/ft2_4FGL_J1058.4+0133_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330181/ft1_4FGL_J1058.4+0133_daily_bin737.fits outfile=/scratch/kocevski/330181/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin737.fits ra=164.624 dec=1.5641 rad=12.0 tmin=430358401.0 tmax=430617601.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.99
user 5.73
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330181/ft1_filtered_4FGL_J1058.4+0133_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/330181/ft2_4FGL_J1058.4+0133_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/330181/ltcube_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.fits outfile=/scratch/kocevski/330181/expmap_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.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/330181/ltcube_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.fits
.....................!
real 193.14
user 186.76
sys 5.45

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/330181/ft1_filtered_4FGL_J1058.4+0133_daily_bin737.fits scfile=/scratch/kocevski/330181/ft2_4FGL_J1058.4+0133_daily_bin737.fits outfile=/scratch/kocevski/330181/cmap_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=164.624 yref=1.5641 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330181/ft1_filtered_4FGL_J1058.4+0133_daily_bin737.fits scfile=/scratch/kocevski/330181/ft2_4FGL_J1058.4+0133_daily_bin737.fits outfile=/scratch/kocevski/330181/cmap_HighResolution_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11851E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1553       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9810       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.3383       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2536       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78839       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2574       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=   4375.870     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2429 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7184        28.251       -.27598E-05    .25037E-04
   2  Prefactor     .10000E-03    219.46        .23582E-05** at limit **
   3  Prefactor     32.217        103.29        .48708E-05    .65393E-05
   4  Prefactor     .10000E-03    13.475       -.63817E-07** at limit **
   5  norm          3.2437        2.3670       -.50455E-08    .32486E-04
   6  Prefactor     10.506        12.690        .21400E-06    .22423E-05
   7  Prefactor     2.5935        5.3100        .41207E-06   -.20236E-04
   8  Prefactor     4.1542        14.528        .22130E-06   -.12958E-04
   9  norm          1.9818        1.3480       -.13867E-06    .22577E-03
  10  Prefactor     11.793        22.866        .90765E-06   -.26740E-04
  11  norm          3.9296        2.1009        .33716E-07   -.43626E-05
  12  Prefactor     17.004        29.332        .66556E-07    .11273E-05
  13  Prefactor     25.691        39.988        .35882E-05    .44457E-04
  14  Prefactor     1.5138        92.601       -.46801E-05   -.58287E-04
  15  Prefactor     .10000E-03    3.1205        .29124E-06** at limit **
  16  norm          .10000E-03    4.4438        .22043E-06** at limit **
  17  Prefactor     .10000E-03    4.9036       -.24619E-06** at limit **
  18  norm          8.3498        17.262        .27443E-06    .43210E-04
  19  Prefactor     6.2535        3.5488        .45045E-07    .20421E-04
  20  Prefactor     .10000E-03    9.6792        .31753E-07** at limit **
  21  Normalizat    .78818        .29435       -.30684E-05    .75918E-04
  22  Prefactor     1.2575        .22006        .16551E-05   -.61416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.71836
  Prefactor  = 0.0001
  Prefactor  = 32.2166
  Prefactor  = 0.0001
  norm       = 3.2437
  Prefactor  = 10.5057
  Prefactor  = 2.59354
  Prefactor  = 4.15424
  norm       = 1.98181
  Prefactor  = 11.7928
  norm       = 3.92964
  Prefactor  = 17.004
  Prefactor  = 25.6909
  Prefactor  = 1.51383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.34983
  Prefactor  = 6.25351
  Prefactor  = 0.0001
  Normalizat = 0.788181
  Prefactor  = 1.25755
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.870     FROM HESSE     STATUS=OK           352 CALLS     2781 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7184        28.022        .13515E-03   -1.5117    
   2  Prefactor     .10000E-03    219.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.217        102.40        .35423E-03   -1.4572    
   4  Prefactor     .10000E-03    13.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2437        2.3561        .80968E-04   -1.5348    
   6  Prefactor     10.506        12.668        .12361E-03   -1.5060    
   7  Prefactor     2.5935        5.2049        .19068E-03   -1.5386    
   8  Prefactor     4.1542        14.238        .19773E-03   -1.5300    
   9  norm          1.9818        1.4287        .42262E-04   -1.5426    
  10  Prefactor     11.793        24.234        .11660E-03   -1.5021    
  11  norm          3.9296        2.0996        .67094E-04   -1.5311    
  12  Prefactor     17.004        29.337        .97133E-04   -1.4883    
  13  Prefactor     25.691        38.632        .79030E-04   -1.4694    
  14  Prefactor     1.5138        79.013        .34878E-03   -1.5462    
  15  Prefactor     .10000E-03    3.1327        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4400        .13604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6743        .25842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.3498        15.861        .13883E-03   -1.5130    
  19  Prefactor     6.2535        3.5486        .89468E-04   -1.5208    
  20  Prefactor     .10000E-03    9.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78818        .32325        .34469E-03   -1.0051    
  22  Prefactor     1.2575        .24703        .22936E-03   -.84578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53127e-10
Minuit parameter uncertainties:
  1  28.0645
  2  7.39787e-05
  3  102.965
  4  1.68078e-05
  5  2.35614
  6  12.6709
  7  5.20577
  8  14.2497
  9  1.42876
  10  24.2545
  11  2.09961
  12  29.3616
  13  38.6698
  14  21.9033
  15  5.15708e-06
  16  7.49666e-06
  17  2.59037e-05
  18  15.8693
  19  3.54871
  20  5.35537e-07
  21  0.32404
  22  0.247262
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.982e+00  1.429e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.258e+00  2.473e-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.882e-01  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.33
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 1.03e-07
Energy Flux (Fixed Index): 6.18e-05 +/- 4.45e-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) = 4374.97795021
delta logL = 0.891988284342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4374.96272312
delta logL = 0.907215372898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1379       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9237       1.0000          .0000       5.0000    
     3 'Normalizat'    .67784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3228       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=   4374.963     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1361        6.7728        .62242E-02    .59431E-03
   2  alpha         2.9243        3.8754        .17122        .54000E-04
   3  Normalizat    .67773        .11855        .83240E-01    .40937E-04
   4  Prefactor     1.3229        .87480E-01    .50760E-01    .30213E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13609
  alpha      = 2.9243
  Normalizat = 0.677726
  Prefactor  = 1.3229
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.963     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1361        1.0959        .27675E-04   -1.5495    
   2  alpha         2.9243        .70359        .72400E-02    .17055    
   3  Normalizat    .67773        .31335        .36864E-03   -1.0478    
   4  Prefactor     1.3229        .25370        .22440E-03   -.82629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37845e-12
Minuit parameter uncertainties:
  1  1.09591
  2  0.713518
  3  0.31418
  4  0.253934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330181': 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) = 4374.96272014
delta logL = 0.907218359304

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.136e+00  1.096e+00  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.924e+00  7.135e-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.323e+00  2.539e-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.777e-01  3.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.92 +/- 0.71
Photon Flux (Free Index): 2.30e-07 +/- 1.09e-07
Energy Flux (Free Index): 4.92e-05 +/- 2.19e-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/330181/cmap_HighResolution_430358401_430617601_4FGL_J1058.4+0133_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='4.92e-05', photon_flux_error='1.03e-07', dlogl='9.07e-01', energy_flux='6.18e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-09-02 22:34:07.240229', photon_index_error2='0.71', photon_index2='2.92', ts='8.33', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.79', time_epoch_completed='1630647247.24', return_code='0', job_id='330181', GAL2='1.32', EG2='0.68', return_code2='0', energy_flux_error='4.45e-05', photon_flux_error2='1.09e-07', ts2='10.45', photon_index='2.19' WHERE bin_id='737' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 330181: <4FGL_J1058.4+0133_daily_bin737> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin737 164.624 1.5641 430358401 430617601 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 :                                   541.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            727 sec.

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

