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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin318
RA = 164.624, Dec = 1.5641
tmin = 321753601, tmax = 322012801
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='326903', job_status='RUN', time_executed='2021-09-02 22:15:36.563174', time_epoch_executed='1630646136.56' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326903

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326903/ft1_4FGL_J1058.4+0133_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326903/ft2_4FGL_J1058.4+0133_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326903/ft1_4FGL_J1058.4+0133_daily_bin318.fits outfile=/scratch/kocevski/326903/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin318.fits ra=164.624 dec=1.5641 rad=12.0 tmin=321753601.0 tmax=322012801.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 3.41
user 3.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326903/ft1_filtered_4FGL_J1058.4+0133_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/326903/ft2_4FGL_J1058.4+0133_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/326903/ltcube_321753601_322012801_4FGL_J1058.4+0133_daily_bin318.fits outfile=/scratch/kocevski/326903/expmap_321753601_322012801_4FGL_J1058.4+0133_daily_bin318.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/326903/ltcube_321753601_322012801_4FGL_J1058.4+0133_daily_bin318.fits
.....................!
real 192.65
user 186.13
sys 5.65

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/326903/ft1_filtered_4FGL_J1058.4+0133_daily_bin318.fits scfile=/scratch/kocevski/326903/ft2_4FGL_J1058.4+0133_daily_bin318.fits outfile=/scratch/kocevski/326903/cmap_321753601_322012801_4FGL_J1058.4+0133_daily_bin318.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.92
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13242E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44576E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.392       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.035       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5503       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.723       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66705       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4656       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=   8283.603     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2428 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2043        .29683E-05** at limit **
   2  Prefactor     21.727        80.678       -.34348E-05   -.29184E-04
   3  Prefactor     24.157        56.864        .15371E-05   -.39950E-04
   4  Prefactor     .10000E-03    27.993        .40331E-05** at limit **
   5  norm          .10000E-03    .35612       -.91495E-07** at limit **
   6  Prefactor     .22520        4.1298       -.76199E-06    .42927E-03
   7  Prefactor     .10006E-03    1.5408       -.39117E-06** at limit **
   8  Prefactor     81.392        15.752       -.31429E-06   -.15708E-03
   9  norm          4.9386        1.2184        .10719E-07    .17418E-03
  10  Prefactor     11.033        16.891        .64261E-07   -.94696E-07
  11  norm          .10000E-03    .68205       -.47480E-06** at limit **
  12  Prefactor     21.919        22.604        .44127E-06    .28109E-04
  13  Prefactor     .10000E-03    7.5780       -.39107E-06** at limit **
  14  Prefactor     .10000E-03    4.1792       -.21848E-06** at limit **
  15  Prefactor     6.5513        5.2623        .32716E-06    .16256E-03
  16  norm          .10000E-03    5.4583       -.64390E-07** at limit **
  17  Prefactor     .10000E-03    2.6096        .15510E-06** at limit **
  18  norm          .10000E-03    13.904        .23060E-06** at limit **
  19  Prefactor     3.5234        2.5501        .66074E-07    .63449E-04
  20  Prefactor     59.731        33.991        .23556E-06    .22150E-04
  21  Normalizat    .66656        .24871       -.96628E-05    .81670E-04
  22  Prefactor     1.4659        .19296        .53732E-05    .15874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 21.7273
  Prefactor  = 24.1566
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.225197
  Prefactor  = 0.000100065
  Prefactor  = 81.3917
  norm       = 4.9386
  Prefactor  = 11.0332
  norm       = 0.0001
  Prefactor  = 21.9191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55127
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.5234
  Prefactor  = 59.7309
  Normalizat = 0.666558
  Prefactor  = 1.46591
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.603     FROM HESSE     STATUS=OK           348 CALLS     2776 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.727        80.479        .86284E-04   -1.4775    
   3  Prefactor     24.157        56.164        .81448E-04   -1.4725    
   4  Prefactor     .10000E-03    28.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .48460        .10522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22520        22.546        .34272E-02   -1.5613    
   7  Prefactor     .10006E-03    13.107        .20775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     81.392        15.578        .44520E-04   -1.3901    
   9  norm          4.9386        1.2412        .38199E-04   -1.5263    
  10  Prefactor     11.033        17.175        .12060E-03   -1.5044    
  11  norm          .10000E-03    .69754        .14601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.919        22.597        .85562E-04   -1.4771    
  13  Prefactor     .10000E-03    7.6095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5513        5.2516        .15680E-03   -1.5196    
  16  norm          .10000E-03    5.5705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6229        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5234        2.5468        .11792E-03   -1.5333    
  20  Prefactor     59.731        33.878        .51917E-04   -1.4161    
  21  Normalizat    .66656        .25372        .40443E-03   -1.0523    
  22  Prefactor     1.4659        .19797        .23460E-03   -.78499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8193e-09
Minuit parameter uncertainties:
  1  0.000153672
  2  80.8855
  3  56.2877
  4  0.000430542
  5  4.52009e-06
  6  4.50729
  7  0.00184532
  8  15.579
  9  1.24118
  10  17.1829
  11  2.89467e-06
  12  22.6058
  13  2.17585e-05
  14  9.72541e-06
  15  5.25201
  16  7.81816e-06
  17  5.39774e-06
  18  5.83286e-06
  19  2.54687
  20  33.8893
  21  0.254166
  22  0.198072
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  4.939e+00  1.241e+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.466e+00  1.981e-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.666e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.26
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.58e-07 +/- 8.99e-08
Energy Flux (Fixed Index): 1.54e-04 +/- 3.87e-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) = 8283.1966715
delta logL = 0.406316479204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8283.17341686
delta logL = 0.429571118053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5455       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3609       1.0000          .0000       5.0000    
     3 'Normalizat'    .62499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4853       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=   8283.173     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5449        11.846        .47205E-02    .15189E-03
   2  alpha         2.3608        1.8660        .12184        .76017E-04
   3  Normalizat    .62499        .26260        .93853E-01    .47635E-04
   4  Prefactor     1.4853        .18169        .52723E-01   -.31413E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54488
  alpha      = 2.36079
  Normalizat = 0.624987
  Prefactor  = 1.48531
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.173     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5449        1.0333        .35191E-04   -1.5282    
   2  alpha         2.3608        .18833        .52637E-02   -.55713E-01
   3  Normalizat    .62499        .24049        .41588E-03   -1.0693    
   4  Prefactor     1.4853        .19682        .23307E-03   -.77952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77166e-13
Minuit parameter uncertainties:
  1  1.03327
  2  0.188506
  3  0.240889
  4  0.196925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326903': 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) = 8283.17341586
delta logL = 0.429572125673

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  4.545e+00  1.033e+00  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.361e+00  1.885e-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.485e+00  1.969e-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.250e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 67.13
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.36 +/- 0.19
Photon Flux (Free Index): 4.09e-07 +/- 9.33e-08
Energy Flux (Free Index): 1.39e-04 +/- 3.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/326903/cmap_HighResolution_321753601_322012801_4FGL_J1058.4+0133_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.58e-07', energy_flux2='1.39e-04', photon_flux_error='8.99e-08', dlogl='4.30e-01', energy_flux='1.54e-04', photon_flux2='4.09e-07', job_status='DONE', time_completed='2021-09-02 22:27:32.663371', photon_index_error2='0.19', photon_index2='2.36', ts='64.26', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.67', time_epoch_completed='1630646852.66', return_code='0', job_id='326903', GAL2='1.49', EG2='0.62', return_code2='0', energy_flux_error='3.87e-05', photon_flux_error2='9.33e-08', ts2='67.13', photon_index='2.19' WHERE bin_id='318' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:27:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 326903: <4FGL_J1058.4+0133_daily_bin318> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin318> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:30 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:13:30 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:13:30 2021
Terminated at Thu Sep  2 22:27:33 2021
Results reported at Thu Sep  2 22:27:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin318 164.624 1.5641 321753601 322012801 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 :                                   708.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            963 sec.

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

