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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin974
RA = 164.65, Dec = 28.2866
tmin = 491788801, tmax = 492048001
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='356607', job_status='RUN', time_executed='2021-09-02 23:45:25.291598', time_epoch_executed='1630651525.29' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356607

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356607/ft1_4FGL_J1058.6+2817_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356607/ft1_4FGL_J1058.6+2817_daily_bin974.fits outfile=/scratch/kocevski/356607/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin974.fits ra=164.65 dec=28.2866 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.29
user 4.01
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.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/356607/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.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.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/356607/ltcube_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits outfile=/scratch/kocevski/356607/expmap_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.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/356607/ltcube_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits
.....................!
real 192.36
user 187.92
sys 3.96

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/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.fits scfile=/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits outfile=/scratch/kocevski/356607/cmap_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.fits scfile=/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits outfile=/scratch/kocevski/356607/cmap_HighResolution_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.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.70
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.fits', '/scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits', expMap='/scratch/kocevski/356607/expmap_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits', expCube='/scratch/kocevski/356607/ltcube_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/356607/Model_4FGL_J1058.6+2817_daily_bin974.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/356607/ft1_filtered_4FGL_J1058.6+2817_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/356607/ft2_4FGL_J1058.6+2817_daily_bin974.fits
Exposure map: /scratch/kocevski/356607/expmap_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits
Exposure cube: /scratch/kocevski/356607/ltcube_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/356607/Model_4FGL_J1058.6+2817_daily_bin974.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) = 2128.11823102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    460.81       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .71843       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    101.91       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.3595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    23.805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    195.35       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5405       1.0000         .10000E-03   10000.    
    28 'Prefactor '    167.82       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .31396       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5771       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=   2128.094     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3924 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4904        36.187        .15727E-04   -.67630E-04
   2  Prefactor     .10000E-03    22.074        .60970E-07** at limit **
   3  Prefactor     21.419        20.525       -.20006E-07   -.25961E-04
   4  Prefactor     .10000E-03    67.509        .22897E-05** at limit **
   5  Prefactor     .10000E-03    54.039       -.12755E-05** at limit **
   6  Prefactor     .10000E-03    9.4291       -.84293E-06** at limit **
   7  Prefactor     .10000E-03    7.4760        .26454E-06** at limit **
   8  Prefactor     460.67        312.09        .64388E-05   -.55355E-04
   9  Prefactor     8.7965        5.6902        .19618E-06   -.13108E-03
  10  Prefactor     .10000E-03    23.112       -.41355E-06** at limit **
  11  Prefactor     85.808        90.162        .31150E-06   -.26582E-04
  12  Prefactor     .10000E-03    46.678       -.21777E-05** at limit **
  13  Prefactor     .10000E-03    10.493        .10760E-06** at limit **
  14  Prefactor     .10000E-03    24.553        .57180E-06** at limit **
  15  norm          .71862        1.1113       -.17398E-06   -.70726E-03
  16  Prefactor     .10000E-03    3.9018       -.57987E-07** at limit **
  17  Prefactor     101.88        84.818        .25016E-05   -.20514E-03
  18  Prefactor     .10000E-03    46.750       -.12018E-05** at limit **
  19  norm          7.4098        67.744       -.13309E-04   -.56603E-04
  20  Prefactor     .10000E-03    6.7203        .25007E-08** at limit **
  21  norm          23.807        34.019       -.30434E-07   -.30432E-04
  22  Prefactor     .10000E-03    7.0551       -.58983E-06** at limit **
  23  Prefactor     .10000E-03    12.083        .61358E-05** at limit **
  24  Prefactor     195.41        172.35       -.86160E-05   -.19886E-03
  25  Prefactor     .10000E-03    18.151       -.17117E-05** at limit **
  26  Prefactor     .10000E-03    12.538        .60785E-06** at limit **
  27  Prefactor     5.5387        19.107        .12424E-06   -.23039E-03
  28  Prefactor     167.81        110.03        .10747E-05   -.49118E-04
  29  Normalizat    .31402        .38546        .57087E-05   -.68294E-04
  30  Prefactor     1.5770        .42375       -.51167E-05   -.10281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49043
  Prefactor  = 0.0001
  Prefactor  = 21.4187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 460.666
  Prefactor  = 8.79652
  Prefactor  = 0.000100001
  Prefactor  = 85.8077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.718624
  Prefactor  = 0.0001
  Prefactor  = 101.883
  Prefactor  = 0.0001
  norm       = 7.40981
  Prefactor  = 0.0001
  norm       = 23.8075
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 195.414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53869
  Prefactor  = 167.807
  Normalizat = 0.314023
  Prefactor  = 1.57697
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.094     FROM HESSE     STATUS=OK           576 CALLS     4500 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4904        36.816        .17578E-02   -1.5464    
   2  Prefactor     .10000E-03    22.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.419        20.426        .86552E-04   -1.4782    
   4  Prefactor     .10000E-03    67.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4409        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4931        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     460.67        310.09        .95393E-04   -1.1382    
   9  Prefactor     8.7965        5.6475        .79955E-04   -1.5115    
  10  Prefactor     .10000E-03    23.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     85.808        89.862        .43369E-04   -1.3853    
  12  Prefactor     .10000E-03    47.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.500        .14596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .71862        1.0497        .53438E-03   -1.5538    
  16  Prefactor     .10000E-03    3.9281        .88972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     101.88        83.169        .39827E-04   -1.3686    
  18  Prefactor     .10000E-03    46.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.4098        67.692        .14785E-03   -1.5163    
  20  Prefactor     .10000E-03    6.7366        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          23.807        33.913        .82100E-04   -1.4732    
  22  Prefactor     .10000E-03    7.0546        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.997        .28728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     195.41        172.29        .14451E-03   -1.2903    
  25  Prefactor     .10000E-03    18.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.533        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.5387        18.968        .17069E-03   -1.5237    
  28  Prefactor     167.81        109.58        .15570E-03   -1.3110    
  29  Normalizat    .31402        .39003        .45242E-03   -1.2201    
  30  Prefactor     1.5770        .44568        .23850E-03   -.75406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17746e-09
Minuit parameter uncertainties:
  1  14.8249
  2  4.51942e-06
  3  20.4328
  4  0.000348475
  5  4.97008e-05
  6  1.30915e-05
  7  5.55109e-05
  8  311.23
  9  5.64781
  10  0.000217179
  11  90.005
  12  8.25576e-05
  13  1.25915e-05
  14  0.000173768
  15  1.04976
  16  1.23406e-06
  17  83.264
  18  8.64517e-05
  19  44.8594
  20  1.53835e-05
  21  33.9406
  22  1.67584e-05
  23  0.000385859
  24  172.743
  25  0.000120358
  26  3.58849e-05
  27  18.9888
  28  109.715
  29  0.393468
  30  0.446802
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  1.259e-05  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:  1.577e+00  4.468e-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:  3.140e-01  3.935e-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: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356607/likelihoodResults_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.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) = 2128.09421517
delta logL = -0.000419107700509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2128.09379604
delta logL = 2.52830432146e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2143       1.0000          .0000       10.000    
     3 'Normalizat'    .31401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5770       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=   2128.094     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    175.69        .14687E-02** at limit **
   2  Index         2.1552        5.6890        .50000        .84600E-05
   3  Normalizat    .31403        .31490E-01    .45241E-03    .17213E-05
   4  Prefactor     1.5770        .35347E-01    .23850E-03    .38849E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101045
  Index      = 2.15522
  Normalizat = 0.314025
  Prefactor  = 1.57697
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.094     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10105E-03    702.13        .29375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1552        8.3453        .50000       -.60524    
   3  Normalizat    .31403        .67660E-01    .18096E-04   -1.2201    
   4  Prefactor     1.5770        .75953E-01    .95401E-05   -.75406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82774e-08
Minuit parameter uncertainties:
  1  0.0548415
  2  1254.14
  3  0.0676777
  4  0.0759588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356607': 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) = 2128.09379595
delta logL = 1.11710505735e-07

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.010e-04  5.484e-02  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.155e+00  1.254e+03  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:  1.577e+00  7.596e-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:  3.140e-01  6.768e-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/356607/cmap_HighResolution_491788801_492048001_4FGL_J1058.6+2817_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-02 23:54:08.831132', job_id='356607', GAL2='1.58', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1630652048.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.58', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='974' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 356607: <4FGL_J1058.6+2817_daily_bin974> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin974> 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) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:41:46 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:46 2021
Terminated at Thu Sep  2 23:54:12 2021
Results reported at Thu Sep  2 23:54:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin974 164.65 28.2866 491788801 492048001 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 :                                   498.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             250.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            782 sec.

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

