/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7734
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_daily_bin734
RA = 164.518, Dec = 43.0938
tmin = 429580801, tmax = 429840001
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='318885', job_status='RUN', time_executed='2021-09-02 21:48:18.503141', time_epoch_executed='1630644498.5' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318885/ft1_4FGL_J1058.0+4305_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318885/ft1_4FGL_J1058.0+4305_daily_bin734.fits outfile=/scratch/kocevski/318885/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin734.fits ra=164.518 dec=43.0938 rad=12.0 tmin=429580801.0 tmax=429840001.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 6.49
user 6.19
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.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/318885/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/318885/ltcube_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.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/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits
.....................!
real 16.85
user 16.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/318885/ltcube_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits outfile=/scratch/kocevski/318885/expmap_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.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/318885/ltcube_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits
.....................!
real 193.45
user 187.85
sys 4.42

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 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits outfile=/scratch/kocevski/318885/cmap_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.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.518 yref=43.0938 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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits outfile=/scratch/kocevski/318885/cmap_HighResolution_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.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.518 yref=43.0938 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.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318885/Model_4FGL_J1058.0+4305_daily_bin734.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/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits.....................!
real 35.44
user 34.01
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits', '/scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits', expMap='/scratch/kocevski/318885/expmap_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits', expCube='/scratch/kocevski/318885/ltcube_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318885/Model_4FGL_J1058.0+4305_daily_bin734.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318885/ft1_filtered_4FGL_J1058.0+4305_daily_bin734.fits
Spacecraft file(s): /scratch/kocevski/318885/ft2_4FGL_J1058.0+4305_daily_bin734.fits
Exposure map: /scratch/kocevski/318885/expmap_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits
Exposure cube: /scratch/kocevski/318885/ltcube_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318885/Model_4FGL_J1058.0+4305_daily_bin734.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) = 3200.82099893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.269       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.561       1.0000         .10000E-03   10000.    
     4 'norm      '    12.741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12227E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .42308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26550E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.6077       1.0000         .10000E-03   10000.    
    20 'norm      '    58.002       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.298       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9680       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0447       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.875       1.0000         .10000E-03   10000.    
    26 'norm      '    5.9093       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    52.794       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .51375       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3200.797     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4324 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.271        23.311        .19168E-05   -.74246E-05
   2  Prefactor     .10000E-03    5.0971       -.24765E-08** at limit **
   3  Prefactor     63.557        49.178       -.36641E-07   -.28383E-05
   4  norm          12.741        5.9644       -.16205E-05    .35450E-04
   5  Prefactor     .10000E-03    2.4453        .85659E-08** at limit **
   6  norm          11.313        11.002       -.40535E-06    .15988E-04
   7  Prefactor     .10000E-03    30.202       -.45835E-06** at limit **
   8  Prefactor     .10000E-03    2.7028        .21500E-07** at limit **
   9  Prefactor     11.586        8.8453        .96539E-06   -.44960E-04
  10  Prefactor     .10000E-03    14.084       -.23856E-06** at limit **
  11  Prefactor     .10000E-03    359.35       -.13329E-04** at limit **
  12  Prefactor     .10000E-03    18.306        .23062E-06** at limit **
  13  Prefactor     .10000E-03    346.02        .16056E-04** at limit **
  14  Prefactor     .10000E-03    159.09        .10376E-05** at limit **
  15  norm          .42307        .31101        .10753E-07   -.26180E-04
  16  Prefactor     23.362        20.257        .49163E-06   -.48986E-05
  17  Prefactor     .10000E-03    8.6931       -.88083E-06** at limit **
  18  Prefactor     .10000E-03    705.64       -.44988E-04** at limit **
  19  norm          8.6067        16.237       -.36850E-05   -.24463E-04
  20  norm          58.003        57.089        .60099E-06    .51317E-05
  21  Prefactor     10.299        5.7561       -.34915E-05   -.27852E-03
  22  Prefactor     .10001E-03    159.11        .36667E-05** at limit **
  23  norm          1.9652        4.4164        .13646E-05   -.47220E-03
  24  Prefactor     7.0442        7.0013       -.34162E-06   -.15180E-05
  25  Prefactor     24.927        74.195        .55830E-04   -.22706E-04
  26  norm          5.9094        2.2159       -.14340E-05    .47091E-03
  27  norm          .10000E-03    6.0133       -.71177E-07** at limit **
  28  Prefactor     .10000E-03    1.3538        .87607E-08** at limit **
  29  Prefactor     52.789        58.068       -.18272E-05   -.29104E-04
  30  Prefactor     .10000E-03    8.8201        .87967E-06** at limit **
  31  Normalizat    .51360        .23003       -.26370E-05   -.75905E-06
  32  Prefactor     1.1552        .27653        .84297E-06   -.61947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.271
  Prefactor  = 0.0001
  Prefactor  = 63.557
  norm       = 12.7411
  Prefactor  = 0.0001
  norm       = 11.313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.42307
  Prefactor  = 23.3625
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.60667
  norm       = 58.0032
  Prefactor  = 10.2993
  Prefactor  = 0.000100007
  norm       = 1.9652
  Prefactor  = 7.04418
  Prefactor  = 24.9273
  norm       = 5.90935
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.7889
  Prefactor  = 0.0001
  Normalizat = 0.513597
  Prefactor  = 1.15519
 **********
 **   18 **HESSE 
 **********

 FCN=   3200.797     FROM HESSE     STATUS=OK           653 CALLS     4977 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.271        23.331        .93705E-04   -1.4853    
   2  Prefactor     .10000E-03    5.1633        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.557        49.267        .50334E-04   -1.4112    
   4  norm          12.741        5.9662        .91674E-04   -1.4994    
   5  Prefactor     .10000E-03    2.4528        .86385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.313        10.999        .11911E-03   -1.5035    
   7  Prefactor     .10000E-03    30.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7163        .90805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.586        8.8457        .11770E-03   -1.5027    
  10  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    360.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    347.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    159.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .42307        .31052        .25834E-04   -1.5578    
  16  Prefactor     23.362        20.276        .82873E-04   -1.4741    
  17  Prefactor     .10000E-03    8.6958        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    709.96        .21441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.6067        16.229        .13663E-03   -1.5121    
  20  norm          58.003        57.103        .52677E-04   -1.4183    
  21  Prefactor     10.299        5.6654        .84419E-04   -1.5066    
  22  Prefactor     .10001E-03    159.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9652        4.2825        .14608E-03   -1.5428    
  24  Prefactor     7.0442        6.9991        .14089E-03   -1.5177    
  25  Prefactor     24.927        74.076        .80317E-04   -1.4709    
  26  norm          5.9094        2.2241        .41870E-04   -1.5222    
  27  norm          .10000E-03    6.0245        .13548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.3562        .64280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     52.789        58.237        .55200E-04   -1.4254    
  30  Prefactor     .10000E-03    8.8238        .16411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .51360        .27073        .30406E-03   -1.1179    
  32  Prefactor     1.1552        .32872        .25955E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95774e-10
Minuit parameter uncertainties:
  1  23.3426
  2  2.70522e-06
  3  49.2991
  4  5.96648
  5  1.75511e-07
  6  11.0006
  7  4.57141e-05
  8  2.21376e-06
  9  8.8467
  10  1.12629e-06
  11  0.000454401
  12  8.30995e-06
  13  0.000154837
  14  0.00016653
  15  0.310517
  16  20.2824
  17  1.07804e-05
  18  0.00122324
  19  16.2376
  20  57.1568
  21  5.66566
  22  0.002099
  23  4.2832
  24  6.99989
  25  74.3513
  26  2.22412
  27  2.04506e-06
  28  1.00236e-06
  29  58.3
  30  4.77012e-06
  31  0.271427
  32  0.329307
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.548e-04  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.155e+00  3.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  5.136e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318885/likelihoodResults_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.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) = 3200.7971822
delta logL = -1.35749778565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3200.7971822
delta logL = -1.35744589898e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3458       1.0000          .0000       10.000    
     3 'Normalizat'    .51360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3200.797     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      212 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    314.58        .90712E-02** at limit **
   2  Index         2.2882        7.3816        .50000        .10440E-05
   3  Normalizat    .51359        .48170E-02    .68688E-01   -.87116E-06
   4  Prefactor     1.1552        .60134E-02    .58697E-01    .75916E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.28822
  Normalizat = 0.513594
  Prefactor  = 1.15519
 **********
 **   18 **HESSE 
 **********

 FCN=   3200.797     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1595.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2882        5.9763        .50000       -.57324    
   3  Normalizat    .51359        .11092E-01    .30407E-03   -1.1179    
   4  Prefactor     1.1552        .13870E-01    .25955E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62097e-08
Minuit parameter uncertainties:
  1  0.00303822
  2  636.1
  3  0.0110924
  4  0.0138695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318885': 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): 102
logL (Free Index) = 3200.79716861
delta logL = 1.67137841345e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  3.038e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.288e+00  6.361e+02  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.155e+00  1.387e-02  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  5.136e-01  1.109e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/318885/cmap_HighResolution_429580801_429840001_4FGL_J1058.0+4305_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-02 22:00:26.210038', job_id='318885', GAL2='1.16', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630645226.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='734' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 318885: <4FGL_J1058.0+4305_daily_bin734> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin734> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:46:15 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:47:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:47:40 2021
Terminated at Thu Sep  2 22:00:26 2021
Results reported at Thu Sep  2 22:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin734 164.518 43.0938 429580801 429840001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            851 sec.

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

