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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin998
RA = 164.624, Dec = 1.5641
tmin = 498009601, tmax = 498268801
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='331409', job_status='RUN', time_executed='2021-09-02 22:30:38.087914', time_epoch_executed='1630647038.09' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331409/ft1_4FGL_J1058.4+0133_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331409/ft1_4FGL_J1058.4+0133_daily_bin998.fits outfile=/scratch/kocevski/331409/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin998.fits ra=164.624 dec=1.5641 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.39
user 7.84
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.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/331409/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/331409/ft1_filtered_4FGL_J1058.4+0133_daily_bin998.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.70
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331409/ft1_filtered_4FGL_J1058.4+0133_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/331409/ltcube_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.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/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits
.....................!
real 16.58
user 15.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331409/ft1_filtered_4FGL_J1058.4+0133_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/331409/ltcube_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.fits outfile=/scratch/kocevski/331409/expmap_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.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/331409/ltcube_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.fits
.....................!
real 193.53
user 186.80
sys 4.55

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/331409/ft1_filtered_4FGL_J1058.4+0133_daily_bin998.fits scfile=/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits outfile=/scratch/kocevski/331409/cmap_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.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.77
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331409/ft1_filtered_4FGL_J1058.4+0133_daily_bin998.fits scfile=/scratch/kocevski/331409/ft2_4FGL_J1058.4+0133_daily_bin998.fits outfile=/scratch/kocevski/331409/cmap_HighResolution_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=164.624 yref=1.5641 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11646E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .26416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7142       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6957       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.820       1.0000         .10000E-03   10000.    
    11 'norm      '    .16793E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.288       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6228       1.0000         .10000E-03   10000.    
    16 'norm      '    .35256       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94797       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1166       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3626.167     FROM MIGRAD    STATUS=FAILED       893 CALLS     2887 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73259        9.3985        .10201        .19900E-03
   2  Prefactor     .10000E-03    37.544        .18142E-02** at limit **
   3  Prefactor     .10000E-03    100.08        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.462        .18142E-02** at limit **
   5  norm          .26590        2.9928        .14729E-02    .32788E-02
   6  Prefactor     14.105        9.5899        .10666E-03   -.89264E-04
   7  Prefactor     6.7141        4.7217        .10210E-03   -.54950E-04
   8  Prefactor     2.7020        11.514        .24813E-03   -.23550E-04
   9  norm          .10000E-03    1.0936        .90438E-03** at limit **
  10  Prefactor     34.843        15.840        .67912E-04    .15568E-04
  11  norm          .25506E-01    13.142        .11059E-02    .13689E-02
  12  Prefactor     19.275        19.766        .91198E-04   -.21815E-04
  13  Prefactor     .10000E-03    45.248        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.260        .18142E-02** at limit **
  15  Prefactor     4.6369        17.733        .18720E-03    .37708E-03
  16  norm          .31914        850.21        .36898E-02    .58161E-04
  17  Prefactor     .10000E-03    7.6356        .16084E-02** at limit **
  18  norm          12.822        19.553        .11186E-03    .72970E-04
  19  Prefactor     .10000E-03    9.5443        .16462E-02** at limit **
  20  Prefactor     .10000E-03    45.327        .18142E-02** at limit **
  21  Normalizat    .94742        .30520        .28599E-03   -.62153E-04
  22  Prefactor     1.1167        .24843        .22439E-03    .53974E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3626.167     FROM SIMPLEX   STATUS=UNCHANGED   1165 CALLS     4052 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73259        9.3985        .66087E-06   -1.5537    
   2  Prefactor     .10000E-03    37.544        .70873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    100.08        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.462        .61215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26590        2.9928        .51520E-06   -1.5605    
   6  Prefactor     14.105        9.5899        .49363E-06   -1.4957    
   7  Prefactor     6.7141        4.7217        .50120E-06   -1.5190    
   8  Prefactor     2.7020        11.514        .50940E-06   -1.5379    
   9  norm          .10000E-03    1.0936        .57391E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.843        15.840        .48017E-06   -1.4527    
  11  norm          .25506E-01    13.142        .53445E-06   -1.5676    
  12  Prefactor     19.275        19.766        .48937E-06   -1.4830    
  13  Prefactor     .10000E-03    45.248        .96865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.260        .30670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6369        17.733        .50403E-06   -1.5277    
  16  norm          .31914        850.21        .77929E-06   -1.5595    
  17  Prefactor     .10000E-03    7.6356        .25274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.822        19.553        .49556E-06   -1.4992    
  19  Prefactor     .10000E-03    9.5443        .10055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.327        .61962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94742        .30520        .31287E-06   -.94813    
  22  Prefactor     1.1167        .24843        .29343E-06   -.88936    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3626.167     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     4388 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73258        44.934        .35532E-02    .37689E-04
   2  Prefactor     .10000E-03    37.545        .36285E-03** at limit **
   3  Prefactor     .10000E-03    100.09        .36285E-03** at limit **
   4  Prefactor     .10000E-03    14.463        .36285E-03** at limit **
   5  norm          .26591        2.9786        .29459E-03    .13116E-03
   6  Prefactor     14.105        9.5834        .42666E-05   -.53292E-05
   7  Prefactor     6.7141        4.7199        .40840E-05     .0000    
   8  Prefactor     2.7020        11.504        .99252E-05    .34363E-06
   9  norm          .10000E-03    1.0946        .18088E-03** at limit **
  10  Prefactor     34.843        15.820        .27165E-05    .19670E-04
  11  norm          .25512E-01    13.335        .22117E-03   -.69136E-05
  12  Prefactor     19.275        19.766        .36479E-05   -.18699E-05
  13  Prefactor     .10000E-03    45.282        .36285E-03** at limit **
  14  Prefactor     .10000E-03    13.264        .36285E-03** at limit **
  15  Prefactor     4.6367        12.474        .74879E-05   -.39475E-05
  16  norm          .31924        428.06        .14759E-03    .11631E-04
  17  Prefactor     .10000E-03    7.6369        .32168E-03** at limit **
  18  norm          12.822        19.515        .44746E-05    .30489E-05
  19  Prefactor     .10000E-03    9.5953        .32925E-03** at limit **
  20  Prefactor     .10000E-03    45.337        .36285E-03** at limit **
  21  Normalizat    .94742        .30543        .11439E-04   -.79505E-05
  22  Prefactor     1.1167        .24833        .44877E-04   -.20013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.73258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.265909
  Prefactor  = 14.1054
  Prefactor  = 6.71407
  Prefactor  = 2.70197
  norm       = 0.0001
  Prefactor  = 34.8427
  norm       = 0.0255121
  Prefactor  = 19.2752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63675
  norm       = 0.31924
  Prefactor  = 0.0001
  norm       = 12.8219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.947424
  Prefactor  = 1.11665
 **********
 **   18 **HESSE 
 **********

 FCN=   3626.167     FROM HESSE     STATUS=OK           324 CALLS     4712 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73258        45.013        .14213E-03   -1.5537    
   2  Prefactor     .10000E-03    37.545        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    100.09        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.463        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26591        2.9750        .58917E-04   -1.5605    
   6  Prefactor     14.105        9.5835        .85332E-06   -1.4957    
   7  Prefactor     6.7141        4.7202        .40840E-05   -1.5190    
   8  Prefactor     2.7020        11.522        .19850E-05   -1.5379    
   9  norm          .10000E-03    1.0946        .36175E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.843        15.833        .54330E-06   -1.4527    
  11  norm          .25512E-01    13.315        .88469E-05   -1.5676    
  12  Prefactor     19.275        19.782        .72959E-06   -1.4830    
  13  Prefactor     .10000E-03    45.283        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.264        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6367        12.359        .14976E-05   -1.5277    
  16  norm          .31924        420.19        .59037E-05   -1.5595    
  17  Prefactor     .10000E-03    7.6370        .64336E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.822        19.529        .89491E-06   -1.4992    
  19  Prefactor     .10000E-03    9.5974        .65849E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.337        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94742        .30536        .22879E-05   -.94813    
  22  Prefactor     1.1167        .24845        .89754E-05   -.88936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74052e-11
Minuit parameter uncertainties:
  1  11.4931
  2  1.00235e-05
  3  9.83267e-06
  4  1.95341e-07
  5  1.77864
  6  9.58457
  7  4.72042
  8  11.1629
  9  1.66787e-06
  10  15.8347
  11  1.16363
  12  19.7892
  13  2.01149e-05
  14  2.671e-06
  15  12.3653
  16  23.3261
  17  4.3156e-06
  18  19.5385
  19  4.86383e-06
  20  1.93732e-07
  21  0.305922
  22  0.24871
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  1.668e-06  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.117e+00  2.487e-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:  9.474e-01  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.624 1.564
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331409/likelihoodResults_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.txt

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): 102
logL (Free Index) = 3626.17125904
delta logL = -0.00438829134464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3626.11292546
delta logL = 0.0539452892467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83657E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2621       1.0000          .0000       5.0000    
     3 'Normalizat'    .92721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1229       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=   3626.113     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      291 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83570E-01    4.0403        .94330E-02    .20564E-02
   2  alpha         3.2623        3.9912        .43875        .26376E-04
   3  Normalizat    .92721        .34593E-01    .65248E-01    .80951E-05
   4  Prefactor     1.1229        .29367E-01    .36774E-01    .18597E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0835697
  alpha      = 3.26229
  Normalizat = 0.927206
  Prefactor  = 1.12292
 **********
 **   18 **HESSE 
 **********

 FCN=   3626.113     FROM HESSE     STATUS=OK            35 CALLS      326 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83570E-01    2.1414        .44732E-03   -1.5650    
   2  alpha         3.2623        4.1279        .26244E-01    .30985    
   3  Normalizat    .92721        .29443        .28860E-03   -.95511    
   4  Prefactor     1.1229        .24483        .22362E-03   -.88737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12902e-09
Minuit parameter uncertainties:
  1  0.845589
  2  4.64884
  3  0.294939
  4  0.245075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331409': 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) = 3626.11292541
delta logL = 0.0539453360116

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  8.357e-02  8.456e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  3.262e+00  4.649e+00  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.123e+00  2.451e-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:  9.272e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.624 1.564

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/331409/cmap_HighResolution_498009601_498268801_4FGL_J1058.4+0133_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-02 22:41:30.801289', job_id='331409', GAL2='1.12', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1630647690.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.39e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='998' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 331409: <4FGL_J1058.4+0133_daily_bin998> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin998> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Sep  2 22:26:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:27:16 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:27:16 2021
Terminated at Thu Sep  2 22:41:31 2021
Results reported at Thu Sep  2 22:41:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin998 164.624 1.5641 498009601 498268801 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 :                                   641.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            897 sec.

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

