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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin439
RA = 164.65, Dec = 28.2866
tmin = 353116801, tmax = 353376001
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='350930', job_status='RUN', time_executed='2021-09-02 23:22:34.665048', time_epoch_executed='1630650154.67' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350930/ft1_4FGL_J1058.6+2817_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350930/ft1_4FGL_J1058.6+2817_daily_bin439.fits outfile=/scratch/kocevski/350930/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin439.fits ra=164.65 dec=28.2866 rad=12.0 tmin=353116801.0 tmax=353376001.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.83
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350930/ft1_filtered_4FGL_J1058.6+2817_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/350930/ltcube_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.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/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits
.....................!
real 16.96
user 16.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350930/ft1_filtered_4FGL_J1058.6+2817_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/350930/ltcube_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.fits outfile=/scratch/kocevski/350930/expmap_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.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/350930/ltcube_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.fits
.....................!
real 193.40
user 186.64
sys 5.50

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/350930/ft1_filtered_4FGL_J1058.6+2817_daily_bin439.fits scfile=/scratch/kocevski/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits outfile=/scratch/kocevski/350930/cmap_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350930/ft1_filtered_4FGL_J1058.6+2817_daily_bin439.fits scfile=/scratch/kocevski/350930/ft2_4FGL_J1058.6+2817_daily_bin439.fits outfile=/scratch/kocevski/350930/cmap_HighResolution_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4415       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6474       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38365E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2834       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18598E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    11.141       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.408       1.0000         .10000E-03   10000.    
    21 'norm      '    9.7369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3496       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.246       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0660       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4463       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4634       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .30681       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=   6240.867     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3916 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1990        .99095E-07** at limit **
   2  Prefactor     2.4403        3.1363        .34217E-06    .79644E-04
   3  Prefactor     .10000E-03    1.3323        .35716E-07** at limit **
   4  Prefactor     70.453        78.314       -.30897E-06   -.10838E-04
   5  Prefactor     .10000E-03    19.813       -.19032E-06** at limit **
   6  Prefactor     7.2433        4.8996        .31962E-06    .20792E-04
   7  Prefactor     10.949        7.3969        .57101E-06   -.76865E-05
   8  Prefactor     56.203        50.446        .92178E-06    .13323E-05
   9  Prefactor     1.6469        1.8350        .19325E-06   -.14039E-04
  10  Prefactor     18.288        11.018        .88001E-06    .48693E-04
  11  Prefactor     .10000E-03    10.245        .82432E-07** at limit **
  12  Prefactor     .10000E-03    4.4908        .43475E-07** at limit **
  13  Prefactor     13.843        12.685        .42498E-06   -.56193E-05
  14  Prefactor     .10000E-03    29.671        .75048E-05** at limit **
  15  norm          2.2828        .43308        .68325E-07    .33316E-03
  16  Prefactor     5.3704        4.4388        .57997E-06   -.56308E-04
  17  Prefactor     35.949        25.050        .13359E-05    .55829E-04
  18  Prefactor     .10000E-03    33.072        .64998E-05** at limit **
  19  norm          11.140        17.246        .12652E-05    .76933E-05
  20  Prefactor     15.406        8.1679        .31774E-06    .87946E-05
  21  norm          9.7232        17.446        .24872E-05   -.14483E-04
  22  Prefactor     6.3463        11.330        .10635E-05   -.96150E-05
  23  Prefactor     2.1559        3.2659        .22626E-06   -.12489E-03
  24  Prefactor     68.230        49.548        .15086E-06   -.55202E-05
  25  Prefactor     .10000E-03    8.8118       -.31498E-06** at limit **
  26  Prefactor     8.0658        8.1097        .25233E-06   -.10729E-04
  27  Prefactor     1.4454        3.6813        .26149E-06   -.11838E-03
  28  Prefactor     .10000E-03    10.648       -.18878E-06** at limit **
  29  Normalizat    1.4644        .23969       -.39342E-05   -.90933E-05
  30  Prefactor     .30598        .22267        .38768E-05   -.85157E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.44029
  Prefactor  = 0.0001
  Prefactor  = 70.4529
  Prefactor  = 0.0001
  Prefactor  = 7.24334
  Prefactor  = 10.9491
  Prefactor  = 56.2032
  Prefactor  = 1.64695
  Prefactor  = 18.2882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.843
  Prefactor  = 0.000100001
  norm       = 2.28281
  Prefactor  = 5.37044
  Prefactor  = 35.9486
  Prefactor  = 0.000100001
  norm       = 11.1397
  Prefactor  = 15.4063
  norm       = 9.7232
  Prefactor  = 6.3463
  Prefactor  = 2.15592
  Prefactor  = 68.2301
  Prefactor  = 0.0001
  Prefactor  = 8.06583
  Prefactor  = 1.44537
  Prefactor  = 0.0001
  Normalizat = 1.46439
  Prefactor  = 0.305981
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.867     FROM HESSE     STATUS=OK           600 CALLS     4516 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2122        .13801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4403        3.1204        .15360E-03   -1.5396    
   3  Prefactor     .10000E-03    1.3342        .89025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     70.453        78.255        .23884E-03   -1.4027    
   5  Prefactor     .10000E-03    19.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2433        4.8945        .13786E-03   -1.5170    
   7  Prefactor     10.949        7.3761        .12107E-03   -1.5046    
   8  Prefactor     56.203        50.411        .53505E-04   -1.4207    
   9  Prefactor     1.6469        1.8213        .10801E-03   -1.5451    
  10  Prefactor     18.288        10.770        .93640E-04   -1.4852    
  11  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4943        .16341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.843        12.669        .10765E-03   -1.4964    
  14  Prefactor     .10000E-03    44.224        .39968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2828        .43277        .21097E-04   -1.5406    
  16  Prefactor     5.3704        4.4180        .13213E-03   -1.5244    
  17  Prefactor     35.949        24.836        .66784E-04   -1.4508    
  18  Prefactor     .10000E-03    63.336        .49456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.140        17.163        .12003E-03   -1.5040    
  20  Prefactor     15.406        8.1565        .10204E-03   -1.4923    
  21  norm          9.7232        17.350        .12842E-03   -1.5084    
  22  Prefactor     6.3463        11.305        .15929E-03   -1.5204    
  23  Prefactor     2.1559        3.2182        .14833E-03   -1.5414    
  24  Prefactor     68.230        49.374        .24294E-03   -1.4054    
  25  Prefactor     .10000E-03    8.8296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.0658        8.1032        .14117E-03   -1.5140    
  27  Prefactor     1.4454        3.6199        .23053E-03   -1.5468    
  28  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4644        .23902        .22464E-03   -.78784    
  30  Prefactor     .30598        .22088        .47352E-03   -1.2191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61261e-11
Minuit parameter uncertainties:
  1  4.5378e-06
  2  3.12062
  3  3.95735e-06
  4  78.3698
  5  1.69123e-05
  6  4.89475
  7  7.3767
  8  50.4489
  9  1.82137
  10  10.7715
  11  1.0148e-05
  12  9.04848e-06
  13  12.6715
  14  0.000350148
  15  0.432774
  16  4.41827
  17  24.8432
  18  0.00052517
  19  17.1701
  20  8.1571
  21  17.3589
  22  11.3091
  23  3.21848
  24  49.4034
  25  2.17941e-05
  26  8.10427
  27  3.62045
  28  7.17687e-06
  29  0.239207
  30  0.221491
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.384e+01  1.267e+01  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:  3.060e-01  2.215e-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.464e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.42e-05

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) = 6240.86596344
delta logL = 0.000987057012935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6240.8657312
delta logL = 0.00121929261877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.078       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1898       1.0000          .0000       10.000    
     3 'Normalizat'    1.4663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30483       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.

 FCN=   6240.866     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      239 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.083        415.78        .26687E-02   -.52261E-04
   2  Index         2.1896        5.5381        .16774        .36985E-04
   3  Normalizat    1.4662        .16278        .50788E-01   -.23508E-03
   4  Prefactor     .30492        .89966E-01    .10697        .33785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0834
  Index      = 2.18963
  Normalizat = 1.4662
  Prefactor  = 0.304919
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.866     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.083        13.283        .10675E-03   -1.4957    
   2  Index         2.1896        .74401        .98149E-02   -.59689    
   3  Normalizat    1.4662        .21739        .22452E-03   -.78733    
   4  Prefactor     .30492        .21981        .47432E-03   -1.2198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28229e-10
Minuit parameter uncertainties:
  1  13.2859
  2  0.748087
  3  0.217523
  4  0.22041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350930': 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) = 6240.86573103
delta logL = 0.00121946640866

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.408e+01  1.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.190e+00  7.481e-01  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:  3.049e-01  2.204e-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.466e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 164.650 28.287
Photon Index (Free Index): 2.19 +/- 0.75
Photon Flux (Free Index): 3.45e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.56e-05

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/350930/cmap_HighResolution_353116801_353376001_4FGL_J1058.6+2817_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.58e-05', photon_flux_error='3.31e-08', dlogl='1.22e-03', energy_flux='1.55e-05', photon_flux2='3.45e-08', job_status='DONE', time_completed='2021-09-02 23:35:59.642652', photon_index_error2='0.75', photon_index2='2.19', ts='4.88', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.46', time_epoch_completed='1630650959.64', return_code='0', job_id='350930', GAL2='0.30', EG2='1.47', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.41e-08', ts2='4.88', photon_index='2.23' WHERE bin_id='439' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:35:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 350930: <4FGL_J1058.6+2817_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin439 164.65 28.2866 353116801 353376001 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            881 sec.

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

