/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 99 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.6+2817_daily_bin362
RA = 164.65, Dec = 28.2866
tmin = 333158401, tmax = 333417601
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='350821', job_status='RUN', time_executed='2021-09-02 23:24:03.799070', time_epoch_executed='1630650243.8' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350821

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350821/ft1_4FGL_J1058.6+2817_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350821/ft1_4FGL_J1058.6+2817_daily_bin362.fits outfile=/scratch/kocevski/350821/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin362.fits ra=164.65 dec=28.2866 rad=12.0 tmin=333158401.0 tmax=333417601.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.90
user 4.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350821/ft1_filtered_4FGL_J1058.6+2817_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/350821/ltcube_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.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/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits
.....................!
real 18.04
user 14.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350821/ft1_filtered_4FGL_J1058.6+2817_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/350821/ltcube_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.fits outfile=/scratch/kocevski/350821/expmap_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.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/350821/ltcube_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.fits
.....................!
real 162.90
user 153.75
sys 3.75

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/350821/ft1_filtered_4FGL_J1058.6+2817_daily_bin362.fits scfile=/scratch/kocevski/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits outfile=/scratch/kocevski/350821/cmap_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.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.56
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350821/ft1_filtered_4FGL_J1058.6+2817_daily_bin362.fits scfile=/scratch/kocevski/350821/ft2_4FGL_J1058.6+2817_daily_bin362.fits outfile=/scratch/kocevski/350821/cmap_HighResolution_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.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.61
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6191       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0473       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84974       1.0000         .10000E-03   10000.    
     8 'Prefactor '    96.638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83031E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .66544       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14238E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4872       1.0000         .10000E-03   10000.    
    19 'norm      '    .10923E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7284       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0411       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.153       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .80837       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29372E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.631       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9757       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.152       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96728       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=   5574.626     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4135 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6158        6.1453        .16202E-05   -.13579E-03
   2  Prefactor     .10000E-03    1.4511       -.34993E-07** at limit **
   3  Prefactor     1.0447        3.1302        .65971E-06    .91108E-04
   4  Prefactor     13.935        44.234        .86892E-06    .78889E-05
   5  Prefactor     .10000E-03    53.998       -.96462E-06** at limit **
   6  Prefactor     4.8835        5.8959        .27574E-06   -.19709E-03
   7  Prefactor     .88220        4.9493        .14737E-05   -.50730E-03
   8  Prefactor     96.550        60.109        .84611E-06    .20220E-03
   9  Prefactor     .10000E-03    .92461       -.40411E-07** at limit **
  10  Prefactor     .10000E-03    4.7945       -.48367E-07** at limit **
  11  Prefactor     .10000E-03    14.315        .40010E-07** at limit **
  12  Prefactor     .10000E-03    6.5857       -.27939E-07** at limit **
  13  Prefactor     .10000E-03    2.7624        .19659E-09** at limit **
  14  Prefactor     .32616E-02    12.741       -.65102E-06    .16709E-03
  15  norm          .66543        .24360        .59871E-10   -.30901E-03
  16  Prefactor     .10000E-03    1.2453       -.34546E-07** at limit **
  17  Prefactor     3.6736        13.292        .58263E-06    .20501E-04
  18  Prefactor     2.4813        12.664        .98667E-06   -.66059E-04
  19  norm          .10000E-03    32.275        .20045E-05** at limit **
  20  Prefactor     5.7290        5.4142        .91292E-07    .18312E-03
  21  norm          1.0341        16.882        .67127E-05    .77598E-04
  22  Prefactor     13.150        12.904        .23808E-06    .17804E-04
  23  Prefactor     .80812        2.0139        .67728E-06    .15067E-04
  24  Prefactor     .10000E-03    19.157       -.21511E-06** at limit **
  25  Prefactor     .10000E-03    39.213       -.26933E-06** at limit **
  26  Prefactor     15.604        13.616        .33530E-06   -.60013E-04
  27  Prefactor     3.9746        5.1578        .28259E-06   -.32091E-04
  28  Prefactor     21.148        16.705        .91632E-07   -.56776E-05
  29  Normalizat    1.0164        .18621       -.16241E-05   -.30216E-03
  30  Prefactor     .96743        .19820        .40886E-06   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61582
  Prefactor  = 0.0001
  Prefactor  = 1.04473
  Prefactor  = 13.9348
  Prefactor  = 0.0001
  Prefactor  = 4.88351
  Prefactor  = 0.882198
  Prefactor  = 96.5501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0032616
  norm       = 0.665432
  Prefactor  = 0.0001
  Prefactor  = 3.67358
  Prefactor  = 2.48126
  norm       = 0.0001
  Prefactor  = 5.72904
  norm       = 1.03412
  Prefactor  = 13.1504
  Prefactor  = 0.808119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6043
  Prefactor  = 3.97459
  Prefactor  = 21.148
  Normalizat = 1.01641
  Prefactor  = 0.967433
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.626     FROM HESSE     STATUS=OK           604 CALLS     4739 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6158        6.1889        .33266E-03   -1.5454    
   2  Prefactor     .10000E-03    1.4609        .87757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0447        2.9526        .21672E-02   -1.5504    
   4  Prefactor     13.935        44.216        .10721E-03   -1.4961    
   5  Prefactor     .10000E-03    54.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8835        5.8428        .18166E-03   -1.5266    
   7  Prefactor     .88220        17.498        .28670E-02   -1.5520    
   8  Prefactor     96.550        61.124        .20444E-03   -1.3740    
   9  Prefactor     .10000E-03    .93761        .69963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8194        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7650        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32616E-02    19.411        .72441E-01   -1.5697    
  15  norm          .66543        .24466        .21021E-04   -1.5545    
  16  Prefactor     .10000E-03    5.5156        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6736        13.011        .21164E-03   -1.5325    
  18  Prefactor     2.4813        12.415        .25920E-03   -1.5393    
  19  norm          .10000E-03    33.135        .41407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7290        5.4220        .16273E-03   -1.5229    
  21  norm          1.0341        17.141        .49044E-03   -1.5505    
  22  Prefactor     13.150        12.891        .11045E-03   -1.4983    
  23  Prefactor     .80812        1.9659        .15721E-03   -1.5528    
  24  Prefactor     .10000E-03    19.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.073        .42797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.604        13.524        .10131E-03   -1.4918    
  27  Prefactor     3.9746        5.1101        .17946E-03   -1.5309    
  28  Prefactor     21.148        16.706        .87090E-04   -1.4788    
  29  Normalizat    1.0164        .21476        .22837E-03   -.92483    
  30  Prefactor     .96743        .22984        .27139E-03   -.93823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07176e-09
Minuit parameter uncertainties:
  1  6.19132
  2  8.25039e-07
  3  2.95304
  4  44.32
  5  5.64845e-05
  6  5.84345
  7  7.86004
  8  61.1641
  9  1.32085e-06
  10  2.50527e-06
  11  2.04332e-05
  12  7.27883e-06
  13  2.05467e-06
  14  0.495618
  15  0.244665
  16  4.33478e-05
  17  13.0214
  18  11.1038
  19  0.000168684
  20  5.42248
  21  8.42288
  22  12.8941
  23  1.96607
  24  6.66414e-05
  25  9.03458e-07
  26  13.5268
  27  5.11062
  28  16.7097
  29  0.214946
  30  0.230075
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  2.055e-06  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.674e-01  2.301e-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:  1.016e+00  2.149e-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: 3.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350821/likelihoodResults_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.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) = 5574.62794586
delta logL = -0.00170113830154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5574.62624435
delta logL = 3.6733399611e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1964       1.0000          .0000       10.000    
     3 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96749       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=   5574.626     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      234 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10407E-03    3.4814        .12556E-01** at limit **
   2  Index         2.0929        8.7899        .50000        .70086E-04
   3  Normalizat    1.0164        .43796E-02    .22837E-03    .44007E-04
   4  Prefactor     .96743        .51165E-02    .27139E-03    .27941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010407
  Index      = 2.09293
  Normalizat = 1.01641
  Prefactor  = 0.967434
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10407E-03    45.001        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0929        8.5947        .50000       -.62046    
   3  Normalizat    1.0164        .15954E-01    .91348E-05   -.92483    
   4  Prefactor     .96743        .18638E-01    .10856E-04   -.93823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.45625e-08
Minuit parameter uncertainties:
  1  0.0270868
  2  248.895
  3  0.0159539
  4  0.018638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350821': 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) = 5574.62624278
delta logL = 1.93988307728e-06

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.041e-04  2.709e-02  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.093e+00  2.489e+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.674e-01  1.864e-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:  1.016e+00  1.595e-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/350821/cmap_HighResolution_333158401_333417601_4FGL_J1058.6+2817_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-03', job_status='DONE', photon_flux_upper_limit='3.86e-08', time_completed='2021-09-02 23:37:41.307240', job_id='350821', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630651061.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='362' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 350821: <4FGL_J1058.6+2817_daily_bin362> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin362> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 23:21:12 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:21: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 23:21:16 2021
Terminated at Thu Sep  2 23:37:42 2021
Results reported at Thu Sep  2 23:37:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin362 164.65 28.2866 333158401 333417601 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            990 sec.

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

