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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin398
RA = 164.624, Dec = 1.5641
tmin = 342489601, tmax = 342748801
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='327042', job_status='RUN', time_executed='2021-09-02 22:17:38.025339', time_epoch_executed='1630646258.03' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327042/ft1_4FGL_J1058.4+0133_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327042/ft2_4FGL_J1058.4+0133_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327042/ft1_4FGL_J1058.4+0133_daily_bin398.fits outfile=/scratch/kocevski/327042/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin398.fits ra=164.624 dec=1.5641 rad=12.0 tmin=342489601.0 tmax=342748801.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.00
user 2.66
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327042/ft1_filtered_4FGL_J1058.4+0133_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/327042/ft2_4FGL_J1058.4+0133_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/327042/ltcube_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.fits outfile=/scratch/kocevski/327042/expmap_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.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/327042/ltcube_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.fits
.....................!
real 156.75
user 151.88
sys 4.28

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/327042/ft1_filtered_4FGL_J1058.4+0133_daily_bin398.fits scfile=/scratch/kocevski/327042/ft2_4FGL_J1058.4+0133_daily_bin398.fits outfile=/scratch/kocevski/327042/cmap_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327042/ft1_filtered_4FGL_J1058.4+0133_daily_bin398.fits scfile=/scratch/kocevski/327042/ft2_4FGL_J1058.4+0133_daily_bin398.fits outfile=/scratch/kocevski/327042/cmap_HighResolution_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5127       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.630       1.0000         .10000E-03   10000.    
    11 'norm      '    .35741E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68757       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83769       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5941.979     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2035 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3981        1.0129        .10721E-06    .57059E-04
   2  Prefactor     .10000E-03    78.343       -.14902E-04** at limit **
   3  Prefactor     .10000E-03    18.318       -.37422E-04** at limit **
   4  Prefactor     .10000E-03    5.3999        .26964E-06** at limit **
   5  norm          .10000E-03    1.1718        .27065E-06** at limit **
   6  Prefactor     12.154        1.0167       -.17833E-06    .58998E-04
   7  Prefactor     9.5121        4.0234       -.81712E-06   -.19121E-03
   8  Prefactor     13.762        1.0652       -.50725E-07   -.64683E-04
   9  norm          1.0021        .56118        .56129E-07    .82626E-03
  10  Prefactor     12.629        1.0055       -.10396E-06    .57078E-04
  11  norm          .41047E-02    .39852       -.29064E-05    .21204E-03
  12  Prefactor     10.973        2.3357       -.26416E-05    .21258E-02
  13  Prefactor     .10000E-03    22.038        .38326E-04** at limit **
  14  Prefactor     19.805        1.7115       -.15107E-05    .18303E-02
  15  Prefactor     .68914        4.1520       -.74304E-06    .10335E-05
  16  norm          6.8957        1.0911        .17751E-06   -.38311E-03
  17  Prefactor     .10000E-03    2.6942        .72185E-07** at limit **
  18  norm          .10000E-03    7.9959       -.68207E-06** at limit **
  19  Prefactor     1.3225        2.6258       -.50519E-06   -.52640E-03
  20  Prefactor     .10000E-03    13.305        .97956E-05** at limit **
  21  Normalizat    .83792        .23448        .19399E-05   -.27250E-03
  22  Prefactor     1.1304        .19237       -.69552E-07   -.33590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39809
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1543
  Prefactor  = 9.51206
  Prefactor  = 13.7619
  norm       = 1.00213
  Prefactor  = 12.6294
  norm       = 0.00410473
  Prefactor  = 10.9731
  Prefactor  = 0.000100004
  Prefactor  = 19.8046
  Prefactor  = 0.689141
  norm       = 6.89567
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.32249
  Prefactor  = 0.0001
  Normalizat = 0.837923
  Prefactor  = 1.13045
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.979     FROM HESSE     STATUS=OK           402 CALLS     2437 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3981        7.6041        .54864E-02   -1.5339    
   2  Prefactor     .10000E-03    78.598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .75222        .26213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.154        8.5544        .28724E-02   -1.5011    
   7  Prefactor     9.5121        4.1292        .32483E-02   -1.5091    
   8  Prefactor     13.762        10.086        .26992E-02   -1.4966    
   9  norm          1.0021        .61080        .94013E-02   -1.5508    
  10  Prefactor     12.629        9.9528        .28178E-02   -1.4997    
  11  norm          .41047E-02    .56924        .37972E-01   -1.5695    
  12  Prefactor     10.973        25.342        .30215E-02   -1.5045    
  13  Prefactor     .10000E-03    21.993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.805        14.978        .22505E-02   -1.4818    
  15  Prefactor     .68914        4.7707        .12014E-01   -1.5542    
  16  norm          6.8957        10.709        .38172E-02   -1.5183    
  17  Prefactor     .10000E-03    2.6679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.9911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3225        2.6679        .95622E-02   -1.5478    
  20  Prefactor     .10000E-03    13.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83792        .21542        .68696E-01   -.98677    
  22  Prefactor     1.1304        .16728        .36523E-01   -.88499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0142e-08
Minuit parameter uncertainties:
  1  7.60622
  2  0.000372775
  3  0.000289063
  4  8.4163e-05
  5  1.67161e-05
  6  8.55528
  7  4.12934
  8  10.0874
  9  0.610801
  10  9.95406
  11  0.0954928
  12  25.3664
  13  0.000580791
  14  14.9811
  15  3.62654
  16  10.7116
  17  1.95814e-05
  18  4.39323e-05
  19  2.66814
  20  9.42023e-06
  21  0.215644
  22  0.167362
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.002e+00  6.108e-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.130e+00  1.674e-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.379e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.40
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.26e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.90e-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) = 5941.82145893
delta logL = 0.157652709406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5941.81904121
delta logL = 0.160070429629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99022       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8846       1.0000          .0000       5.0000    
     3 'Normalizat'    .85837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       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=   5941.819     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      226 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99054        17.806        .99102E-02   -.77108E-03
   2  alpha         1.8849        2.6890        .35308       -.31331E-06
   3  Normalizat    .85787        .23392        .68017E-01    .29448E-04
   4  Prefactor     1.1224        .15762        .36799E-01    .24995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.990542
  alpha      = 1.88491
  Normalizat = 0.857871
  Prefactor  = 1.12244
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.819     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99054        .60466        .43812E-04   -1.5509    
   2  alpha         1.8849        .52310        .12787E-01   -.24859    
   3  Normalizat    .85787        .23158        .30092E-03   -.97957    
   4  Prefactor     1.1224        .19193        .22111E-03   -.88753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24327e-11
Minuit parameter uncertainties:
  1  0.604664
  2  0.527246
  3  0.231848
  4  0.192052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327042': 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) = 5941.81903837
delta logL = 0.160073265622

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.905e-01  6.047e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.885e+00  5.272e-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.122e+00  1.921e-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.579e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.79
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.88 +/- 0.53
Photon Flux (Free Index): 5.14e-08 +/- 4.56e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.15e-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/327042/cmap_HighResolution_342489601_342748801_4FGL_J1058.4+0133_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.26e-08', energy_flux2='3.96e-05', photon_flux_error='4.42e-08', dlogl='1.60e-01', energy_flux='3.12e-05', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-09-02 22:25:32.083960', photon_index_error2='0.53', photon_index2='1.88', ts='8.40', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.84', time_epoch_completed='1630646732.08', return_code='0', job_id='327042', GAL2='1.12', EG2='0.86', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='4.56e-08', ts2='8.79', photon_index='2.19' WHERE bin_id='398' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 327042: <4FGL_J1058.4+0133_daily_bin398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin398 164.624 1.5641 342489601 342748801 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 :                                   470.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            833 sec.

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

