/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 17 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7475
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_daily_bin713
RA = 164.518, Dec = 43.0938
tmin = 424137601, tmax = 424396801
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='318856', job_status='RUN', time_executed='2021-09-02 21:48:27.543059', time_epoch_executed='1630644507.54' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318856/ft1_4FGL_J1058.0+4305_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318856/ft1_4FGL_J1058.0+4305_daily_bin713.fits outfile=/scratch/kocevski/318856/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin713.fits ra=164.518 dec=43.0938 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.18
user 4.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.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/318856/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin713.fits evtable="EVENTS" outfile="/scratch/kocevski/318856/ft1_filtered_4FGL_J1058.0+4305_daily_bin713.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318856/ft1_filtered_4FGL_J1058.0+4305_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/318856/ltcube_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.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/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits
.....................!
real 15.17
user 14.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318856/ft1_filtered_4FGL_J1058.0+4305_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/318856/ltcube_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.fits outfile=/scratch/kocevski/318856/expmap_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.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/318856/ltcube_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.fits
.....................!
real 191.69
user 186.98
sys 4.06

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/318856/ft1_filtered_4FGL_J1058.0+4305_daily_bin713.fits scfile=/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits outfile=/scratch/kocevski/318856/cmap_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318856/ft1_filtered_4FGL_J1058.0+4305_daily_bin713.fits scfile=/scratch/kocevski/318856/ft2_4FGL_J1058.0+4305_daily_bin713.fits outfile=/scratch/kocevski/318856/cmap_HighResolution_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.140       1.0000         .10000E-03   10000.    
     4 'norm      '    6.2450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90602E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    15.012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4127       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.4933       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2070       1.0000         .10000E-03   10000.    
    25 'Prefactor '    134.09       1.0000         .10000E-03   10000.    
    26 'norm      '    7.9609       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    66.183       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .28021       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.6263       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=   3253.429     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4343 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8222        16.644        .31147E-05    .89827E-04
   2  Prefactor     .10002E-03    8.5356        .20128E-05** at limit **
   3  Prefactor     34.138        42.943        .24076E-05    .58223E-04
   4  norm          6.2453        3.4994        .22141E-06    .17352E-03
   5  Prefactor     .11626        4.7691       -.14728E-05    .22881E-03
   6  norm          15.010        15.020       -.11707E-06   -.17598E-04
   7  Prefactor     .10000E-03    41.212        .26203E-06** at limit **
   8  Prefactor     17.722        8.0136        .41030E-06    .11982E-03
   9  Prefactor     1.3934        6.7797        .33754E-05   -.27032E-03
  10  Prefactor     28.446        40.092        .10886E-06    .48171E-05
  11  Prefactor     .10000E-03    48.191       -.17104E-05** at limit **
  12  Prefactor     22.943        24.341        .40652E-06    .26923E-04
  13  Prefactor     .10000E-03    42.218        .52725E-06** at limit **
  14  Prefactor     8.4632        123.14        .15191E-05   -.66841E-04
  15  norm          1.5595        .49151        .59263E-07    .65264E-03
  16  Prefactor     .10000E-03    7.1798        .64923E-06** at limit **
  17  Prefactor     .10000E-03    8.1057       -.39655E-06** at limit **
  18  Prefactor     .10000E-03    79.300        .17622E-05** at limit **
  19  norm          .10000E-03    11.626       -.74567E-06** at limit **
  20  norm          .10000E-03    34.096        .82028E-06** at limit **
  21  Prefactor     6.1837        6.1233        .12616E-06    .44776E-03
  22  Prefactor     .10000E-03    77.176        .45833E-06** at limit **
  23  norm          8.4937        6.2730        .39534E-06    .34342E-03
  24  Prefactor     1.2072        30.754        .64010E-05   -.17528E-03
  25  Prefactor     134.10        94.872        .14120E-05    .58755E-04
  26  norm          7.9610        3.0886        .14440E-06    .46206E-03
  27  norm          .10000E-03    6.7686       -.19479E-06** at limit **
  28  Prefactor     .10000E-03    4.2722       -.29239E-06** at limit **
  29  Prefactor     .10000E-03    57.731       -.19050E-05** at limit **
  30  Prefactor     66.194        52.466        .10967E-05   -.17668E-06
  31  Normalizat    .28009        .25945       -.12467E-04   -.26279E-03
  32  Prefactor     1.6263        .32218        .30645E-05   -.25494E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.82221
  Prefactor  = 0.000100017
  Prefactor  = 34.1376
  norm       = 6.24533
  Prefactor  = 0.11626
  norm       = 15.0101
  Prefactor  = 0.0001
  Prefactor  = 17.7219
  Prefactor  = 1.39337
  Prefactor  = 28.446
  Prefactor  = 0.0001
  Prefactor  = 22.9431
  Prefactor  = 0.0001
  Prefactor  = 8.46317
  norm       = 1.55948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.18373
  Prefactor  = 0.0001
  norm       = 8.49374
  Prefactor  = 1.20723
  Prefactor  = 134.101
  norm       = 7.96096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 66.1936
  Normalizat = 0.280086
  Prefactor  = 1.6263
 **********
 **   18 **HESSE 
 **********

 FCN=   3253.429     FROM HESSE     STATUS=OK           653 CALLS     4996 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8222        16.802        .16649E-03   -1.5225    
   2  Prefactor     .10002E-03    10.761        .25109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.138        43.056        .68583E-04   -1.4539    
   4  norm          6.2453        3.5023        .76990E-04   -1.5208    
   5  Prefactor     .11626        53.645        .20547E-02   -1.5640    
   6  norm          15.010        14.980        .10337E-03   -1.4933    
   7  Prefactor     .10000E-03    41.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.722        8.0268        .95142E-04   -1.4866    
   9  Prefactor     1.3934        6.7979        .13670E-02   -1.5472    
  10  Prefactor     28.446        40.059        .75119E-04   -1.4641    
  11  Prefactor     .10000E-03    48.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.943        24.365        .83626E-04   -1.4750    
  13  Prefactor     .10000E-03    42.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4632        123.46        .13821E-03   -1.5126    
  15  norm          1.5595        .49298        .21747E-04   -1.5458    
  16  Prefactor     .10000E-03    7.1993        .14938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1148        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    79.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    34.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1837        6.2230        .11335E-03   -1.5211    
  22  Prefactor     .10000E-03    77.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.4937        6.2704        .10800E-03   -1.5125    
  24  Prefactor     1.2072        32.598        .20615E-02   -1.5488    
  25  Prefactor     134.10        95.161        .34777E-04   -1.3387    
  26  norm          7.9610        3.0982        .56417E-04   -1.5144    
  27  norm          .10000E-03    6.7700        .14496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2916        .11492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    57.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     66.194        52.519        .49334E-04   -1.4079    
  31  Normalizat    .28009        .27422        .40631E-03   -1.2404    
  32  Prefactor     1.6263        .33717        .24516E-03   -.74061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62649e-09
Minuit parameter uncertainties:
  1  16.8158
  2  0.000856077
  3  43.0953
  4  3.5024
  5  4.99707
  6  14.9833
  7  5.31751e-05
  8  8.02732
  9  6.15623
  10  40.0966
  11  0.00030309
  12  24.3751
  13  0.000112116
  14  64.8098
  15  0.492979
  16  5.99803e-05
  17  4.7282e-05
  18  0.000664297
  19  0.000109209
  20  0.000183537
  21  6.22368
  22  8.45359e-05
  23  6.27093
  24  12.5534
  25  95.2703
  26  3.09823
  27  1.97069e-05
  28  2.29536e-06
  29  0.00056907
  30  52.5559
  31  0.27555
  32  0.337643
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.121e-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.626e+00  3.376e-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:  2.801e-01  2.755e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318856/likelihoodResults_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.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) = 3253.42868894
delta logL = -9.53541216404e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3253.4285945
delta logL = -9.07409685169e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12363E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3925       1.0000          .0000       10.000    
     3 'Normalizat'    .28034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6260       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=   3253.429     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.506        .90712E-02** at limit **
   2  Index         2.3651        6.1752        .50000        .57235E-05
   3  Normalizat    .28009        .22557        .91741E-01    .37812E-04
   4  Prefactor     1.6263        .31111        .55459E-01    .52865E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.36513
  Normalizat = 0.280091
  Prefactor  = 1.6263
 **********
 **   18 **HESSE 
 **********

 FCN=   3253.429     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3651        6.1823        .50000       -.55504    
   3  Normalizat    .28009        .23355        .40636E-03   -1.2404    
   4  Prefactor     1.6263        .32292        .24516E-03   -.74061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47774e-10
Minuit parameter uncertainties:
  1  0.000861377
  2  4.25594
  3  0.234364
  4  0.323332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318856': 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) = 3253.42859361
delta logL = -2.53344296652e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  8.614e-04  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.365e+00  4.256e+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:  1.626e+00  3.233e-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:  2.801e-01  2.344e-01  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/318856/cmap_HighResolution_424137601_424396801_4FGL_J1058.0+4305_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-02 22:00:43.539776', job_id='318856', GAL2='1.63', fit_tolerance='1e-08', EG2='0.28', EG='0.28', time_epoch_completed='1630645243.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.63', dlogl='-2.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='713' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 318856: <4FGL_J1058.0+4305_daily_bin713> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin713> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:46:13 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:47:31 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:31 2021
Terminated at Thu Sep  2 22:00:44 2021
Results reported at Thu Sep  2 22:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin713 164.518 43.0938 424137601 424396801 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 :                                   728.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            871 sec.

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

