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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin976
RA = 164.65, Dec = 28.2866
tmin = 492307201, tmax = 492566401
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='356611', job_status='RUN', time_executed='2021-09-02 23:45:04.798467', time_epoch_executed='1630651504.8' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356611/ft1_4FGL_J1058.6+2817_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356611/ft1_4FGL_J1058.6+2817_daily_bin976.fits outfile=/scratch/kocevski/356611/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin976.fits ra=164.65 dec=28.2866 rad=12.0 tmin=492307201.0 tmax=492566401.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.77
user 3.51
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.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/356611/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.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.57
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/356611/ltcube_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.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/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits
.....................!
real 16.26
user 15.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/356611/ltcube_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits outfile=/scratch/kocevski/356611/expmap_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.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/356611/ltcube_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits
.....................!
real 193.95
user 187.88
sys 4.56

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits outfile=/scratch/kocevski/356611/cmap_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.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.65 yref=28.2866 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits outfile=/scratch/kocevski/356611/cmap_HighResolution_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.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.65 yref=28.2866 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.62
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356611/Model_4FGL_J1058.6+2817_daily_bin976.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/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits.....................!
real 41.33
user 39.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits', '/scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits', expMap='/scratch/kocevski/356611/expmap_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits', expCube='/scratch/kocevski/356611/ltcube_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/356611/Model_4FGL_J1058.6+2817_daily_bin976.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/356611/ft1_filtered_4FGL_J1058.6+2817_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/356611/ft2_4FGL_J1058.6+2817_daily_bin976.fits
Exposure map: /scratch/kocevski/356611/expmap_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits
Exposure cube: /scratch/kocevski/356611/ltcube_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/356611/Model_4FGL_J1058.6+2817_daily_bin976.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) = 3987.07579309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8529       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    111.46       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15301E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18651E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.761       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .89818       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22804E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.393       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49540E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83170       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3986.901     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3442 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8496        16.033       -.14578E-05   -.25292E-03
   2  Prefactor     .16621        3.3312       -.10296E-05   -.31790E-03
   3  Prefactor     .10000E-03    2.1521       -.38985E-07** at limit **
   4  Prefactor     .10000E-03    38.509        .17507E-04** at limit **
   5  Prefactor     111.52        49.801        .13982E-04    .55328E-04
   6  Prefactor     .10001E-03    6.0694       -.13175E-05** at limit **
   7  Prefactor     .10000E-03    7.1255        .94793E-06** at limit **
   8  Prefactor     .10000E-03    31.114       -.40304E-06** at limit **
   9  Prefactor     3.4561        2.7646       -.26898E-08   -.35179E-03
  10  Prefactor     14.094        10.604        .48226E-06    .49786E-04
  11  Prefactor     .10000E-03    84.346        .41455E-04** at limit **
  12  Prefactor     .10000E-03    5.1229        .36448E-07** at limit **
  13  Prefactor     .10000E-03    3.1502       -.25918E-07** at limit **
  14  Prefactor     .10000E-03    29.233       -.87017E-05** at limit **
  15  norm          2.0584        .46985       -.12896E-08   -.85384E-04
  16  Prefactor     .10000E-03    .84031       -.14889E-07** at limit **
  17  Prefactor     .10000E-03    14.115       -.73546E-06** at limit **
  18  Prefactor     .10000E-03    6.4870        .11063E-05** at limit **
  19  norm          13.183        13.600        .22666E-07   -.24559E-04
  20  Prefactor     .10000E-03    3.7786        .13281E-07** at limit **
  21  norm          15.765        13.651        .24551E-06   -.20468E-04
  22  Prefactor     .10000E-03    10.905        .35539E-06** at limit **
  23  Prefactor     .89948        2.2758        .24559E-06    .12460E-03
  24  Prefactor     .10000E-03    65.586       -.41209E-04** at limit **
  25  Prefactor     12.399        13.093        .38351E-07    .78174E-05
  26  Prefactor     .10000E-03    6.4032       -.11070E-05** at limit **
  27  Prefactor     .10000E-03    1.2437        .61083E-08** at limit **
  28  Prefactor     .10008E-03    14.450        .71549E-07** at limit **
  29  Normalizat    .83159        .20721       -.17503E-05   -.81203E-04
  30  Prefactor     .98888        .22951       -.11243E-06   -.11418E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84956
  Prefactor  = 0.166208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.52
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.45608
  Prefactor  = 14.094
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1831
  Prefactor  = 0.0001
  norm       = 15.7646
  Prefactor  = 0.0001
  Prefactor  = 0.89948
  Prefactor  = 0.0001
  Prefactor  = 12.3989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  Normalizat = 0.831587
  Prefactor  = 0.988879
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.901     FROM HESSE     STATUS=OK           592 CALLS     4034 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8496        16.108        .30625E-03   -1.5436    
   2  Prefactor     .16621        10.199        .22289E-02   -1.5626    
   3  Prefactor     .10000E-03    2.1623        .90389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     111.52        49.794        .19050E-03   -1.3592    
   6  Prefactor     .10001E-03    6.1685        .15188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.987        .31723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4561        2.7308        .88552E-04   -1.5336    
  10  Prefactor     14.094        10.555        .10669E-03   -1.4957    
  11  Prefactor     .10000E-03    84.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1276        .13953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1520        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0584        .47014        .19892E-04   -1.5421    
  16  Prefactor     .10000E-03    .84502        .56514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4896        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.183        13.578        .11033E-03   -1.4982    
  20  Prefactor     .10000E-03    3.7894        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.765        13.664        .10089E-03   -1.4914    
  22  Prefactor     .10000E-03    10.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .89948        2.2378        .14376E-03   -1.5518    
  24  Prefactor     .10000E-03    65.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.399        13.096        .11379E-03   -1.5004    
  26  Prefactor     .10000E-03    6.4325        .15600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2448        .68759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10008E-03    17.573        .78905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83159        .23897        .24490E-03   -.98908    
  30  Prefactor     .98888        .26623        .26191E-03   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7037e-09
Minuit parameter uncertainties:
  1  10.9202
  2  2.60368
  3  7.98995e-06
  4  7.2045e-07
  5  49.8128
  6  0.000380588
  7  0.000380145
  8  0.000142279
  9  2.73087
  10  10.5567
  11  0.000464929
  12  2.48047e-06
  13  9.55862e-07
  14  0.000148191
  15  0.470143
  16  9.57309e-07
  17  1.89679e-06
  18  9.51063e-07
  19  13.5815
  20  4.5065e-06
  21  13.6669
  22  1.86178e-05
  23  2.23797
  24  0.000166146
  25  13.0987
  26  7.91499e-06
  27  1.01957e-06
  28  0.00240463
  29  0.239277
  30  0.266582
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  9.559e-07  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.889e-01  2.666e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.316e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.650 28.287
Photon Flux Upper Limit: 4.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356611/likelihoodResults_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.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) = 3986.90272721
delta logL = -0.00145864929755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3986.90126815
delta logL = 4.09340373153e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2007       1.0000          .0000       10.000    
     3 'Normalizat'    .83158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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.

 FCN=   3986.901     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    5.1973        .11237E-01** at limit **
   2  Index         2.1146        5.8785        .50000        .55769E-04
   3  Normalizat    .83159        .59223E-02    .24490E-03   -.92379E-05
   4  Prefactor     .98888        .68896E-02    .26191E-03   -.32989E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102904
  Index      = 2.11458
  Normalizat = 0.831586
  Prefactor  = 0.98888
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.901     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10290E-03    52.692        .11571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1146        5.7359        .50000       -.61515    
   3  Normalizat    .83159        .19132E-01    .97960E-05   -.98908    
   4  Prefactor     .98888        .22257E-01    .10476E-04   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11052e-08
Minuit parameter uncertainties:
  1  0.024764
  2  262.565
  3  0.0191323
  4  0.022257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356611': 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) = 3986.9012673
delta logL = 1.25852102428e-06

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.029e-04  2.476e-02  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.115e+00  2.626e+02  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.889e-01  2.226e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.316e-01  1.913e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.650 28.287

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/356611/cmap_HighResolution_492307201_492566401_4FGL_J1058.6+2817_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-02 23:56:09.313519', job_id='356611', GAL2='0.99', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630652169.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='976' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 356611: <4FGL_J1058.6+2817_daily_bin976> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin976> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 23:41:10 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:41:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 23:41:57 2021
Terminated at Thu Sep  2 23:56:11 2021
Results reported at Thu Sep  2 23:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin976 164.65 28.2866 492307201 492566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+2817 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            901 sec.

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

