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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1278
RA = 164.518, Dec = 43.0938
tmin = 570585601, tmax = 570844801
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='323588', job_status='RUN', time_executed='2021-09-02 22:05:40.212418', time_epoch_executed='1630645540.21' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323588/ft1_4FGL_J1058.0+4305_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323588/ft1_4FGL_J1058.0+4305_daily_bin1278.fits outfile=/scratch/kocevski/323588/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1278.fits ra=164.518 dec=43.0938 rad=12.0 tmin=570585601.0 tmax=570844801.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.17
user 2.85
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/323588/ltcube_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.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/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits
.....................!
real 19.56
user 18.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/323588/ltcube_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits outfile=/scratch/kocevski/323588/expmap_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.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/323588/ltcube_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits
.....................!
real 196.26
user 188.46
sys 5.26

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/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits scfile=/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits outfile=/scratch/kocevski/323588/cmap_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits scfile=/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits outfile=/scratch/kocevski/323588/cmap_HighResolution_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits', '/scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits', expMap='/scratch/kocevski/323588/expmap_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits', expCube='/scratch/kocevski/323588/ltcube_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/323588/Model_4FGL_J1058.0+4305_daily_bin1278.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/323588/ft1_filtered_4FGL_J1058.0+4305_daily_bin1278.fits
Spacecraft file(s): /scratch/kocevski/323588/ft2_4FGL_J1058.0+4305_daily_bin1278.fits
Exposure map: /scratch/kocevski/323588/expmap_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits
Exposure cube: /scratch/kocevski/323588/ltcube_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/323588/Model_4FGL_J1058.0+4305_daily_bin1278.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) = 152.629493991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2589       1.0000         .10000E-03   10000.    
     4 'norm      '    15.428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1745       1.0000         .10000E-03   10000.    
     6 'norm      '    16.121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8631.8       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8868.1       1.0000         .10000E-03   10000.    
    10 'Prefactor '    300.92       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    496.67       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1374.9       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.444       1.0000         .10000E-03   10000.    
    15 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31440E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    110.02       1.0000         .10000E-03   10000.    
    19 'norm      '    .17195E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .33932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .93944E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.802       1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.715       1.0000         .10000E-03   10000.    
    26 'norm      '    .14252E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    88.556       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .73466E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12043E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .63113       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=   146.6032     FROM MIGRAD    STATUS=CONVERGED   1350 CALLS     4537 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        5627.1        .53562E-03** at limit **
   2  Prefactor    10000.0        5035.8       -.38350E-03** at limit **
   3  Prefactor    10000.0        9486.6       -.60442E-04** at limit **
   4  norm         10000.0        9695.0       -.51405E-04** at limit **
   5  Prefactor    10000.0        5082.3       -.33937E-04** at limit **
   6  norm         10000.0        8512.7       -.27664E-04** at limit **
   7  Prefactor    10000.0        6276.8       -.14978E-04** at limit **
   8  Prefactor    10000.0        6628.5        .17638E-04** at limit **
   9  Prefactor     10000.        7450.0        .46261E-05** at limit **
  10  Prefactor    10000.0        9369.6        .78113E-04** at limit **
  11  Prefactor    10000.0        9400.8       -.57780E-04** at limit **
  12  Prefactor     486.09        619.12       -.94736E-05    .42524E-05
  13  Prefactor     .10000E-03    9510.5        .98888E-05** at limit **
  14  Prefactor    10000.0        9726.5       -.28802E-03** at limit **
  15  norm          .10000E-03    1.4694       -.36632E-07** at limit **
  16  Prefactor     .10000E-03    61.486        .48019E-07** at limit **
  17  Prefactor     .10000E-03    75.049        .77776E-07** at limit **
  18  Prefactor     .10002E-03    9862.2       -.46158E-03** at limit **
  19  norm          .10000E-03    47.521        .39815E-07** at limit **
  20  norm          .10000E-03    1159.7       -.87730E-05** at limit **
  21  Prefactor     .10000E-03    7.9645        .24142E-06** at limit **
  22  Prefactor     .10000E-03    88.039        .77253E-06** at limit **
  23  norm          .10000E-03    4.7510        .12324E-07** at limit **
  24  Prefactor     12.299        20.202        .67851E-06    .48216E-05
  25  Prefactor     2.7167        1590.2        .47382E-05   -.83474E-07
  26  norm          .10000E-03    7.7293       -.28601E-06** at limit **
  27  norm          86.482        63.790        .52482E-06   -.26761E-05
  28  Prefactor     .10000E-03    7.8196       -.22364E-06** at limit **
  29  Prefactor     .10000E-03    109.30       -.22405E-06** at limit **
  30  Prefactor     .10000E-03    60.899        .25261E-06** at limit **
  31  Normalizat    .10000E-01    .33499        .54167E-06** at limit **
  32  Prefactor     .56545        .47049       -.41461E-05   -.98024E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 486.092
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2994
  Prefactor  = 2.7167
  norm       = 0.0001
  norm       = 86.4821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.565449
 **********
 **   18 **HESSE 
 **********

 FCN=   146.6032     FROM HESSE     STATUS=OK           647 CALLS     5184 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        8981.1        .71775E-03    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        7789.3        .95916E-03    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        9686.4        .74437E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        9698.6        .50985E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        5105.7        .80780E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        8489.1        .49876E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8209.3        .38975E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        6624.1        .58198E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10000.        7451.5        .63126E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9395.4        .11707E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        9403.5        .35984E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     486.09        630.01        .92057E-04   -1.1262    
  13  Prefactor     .10000E-03    9478.5        .58078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        9728.6        .26239E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4690        .14364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.989        .94167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    77.334        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    9864.3        .19174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    48.427        .82524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1166.1        .21192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9390        .33351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    91.117        .11332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.7503        .25838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.299        20.347        .67228E-04   -1.5006    
  25  Prefactor     2.7167        1606.4        .73498E-03   -1.5378    
  26  norm          .10000E-03    7.7949        .59962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          86.482        64.403        .42696E-04   -1.3845    
  28  Prefactor     .10000E-03    7.8315        .33171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    113.25        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    62.249        .93684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .34555        .43995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .56545        .47609        .22095E-03   -1.0906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15055e-08
Minuit parameter uncertainties:
  1  42.2701
  2  21.6485
  3  8.14354
  4  0.061011
  5  0.217309
  6  0.241179
  7  0.995748
  8  0.000124133
  9  4.16998e-05
  10  0.176307
  11  0.160073
  12  639.393
  13  0.00402978
  14  0.00165707
  15  1.10932e-07
  16  4.07892e-06
  17  2.86319e-06
  18  0.0368725
  19  7.79183e-06
  20  0.000852136
  21  6.25112e-06
  22  9.15716e-06
  23  7.61012e-07
  24  20.3582
  25  135.963
  26  1.50519e-07
  27  64.4552
  28  8.81463e-08
  29  1.15795e-05
  30  3.2321e-06
  31  7.81974e-08
  32  0.479531
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.030e-03  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:  5.654e-01  4.795e-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:  1.000e-02  7.820e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.443947429704

TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.70e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323588/likelihoodResults_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.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): 0
logL (Free Index) = 146.603231131
delta logL = -1.58670232793e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 146.603231131
delta logL = -1.58670232793e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.3458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   146.6032     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       67 TOTAL
                     EDM=   .70E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.3458        3.5656         .0000       -.11851E-07
                               ERR DEF=  .500    
Final values: 
  Index      = 2.34585
 **********
 **   18 **HESSE 
 **********

 FCN=   146.6032     FROM HESSE     STATUS=OK            11 CALLS       78 TOTAL
                     EDM=   .14E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.3458        3.5656        .50000       -.55958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40449e-16
Minuit parameter uncertainties:
  1  4.23739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323588': 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) = 146.603231131
delta logL = -1.58670232793e-05

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.039e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
356        Index:  2.346e+00  4.237e+00  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:  5.660e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/323588/cmap_HighResolution_570585601_570844801_4FGL_J1058.0+4305_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.70e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-02 22:16:40.108914', job_id='323588', GAL2='0.57', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630646200.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='-1.59e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1278' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:16:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 323588: <4FGL_J1058.0+4305_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1278> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 22:01:21 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:02: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:02:16 2021
Terminated at Thu Sep  2 22:16:40 2021
Results reported at Thu Sep  2 22:16:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1278 164.518 43.0938 570585601 570844801 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 :                                   368.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             190.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            919 sec.

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

