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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin652
RA = 164.518, Dec = 43.0938
tmin = 408326401, tmax = 408585601
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='318759', job_status='RUN', time_executed='2021-09-02 21:48:23.913944', time_epoch_executed='1630644503.91' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318759/ft1_4FGL_J1058.0+4305_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318759/ft1_4FGL_J1058.0+4305_daily_bin652.fits outfile=/scratch/kocevski/318759/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin652.fits ra=164.518 dec=43.0938 rad=12.0 tmin=408326401.0 tmax=408585601.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.96
user 3.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.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/318759/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.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.45
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/318759/ltcube_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.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/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits
.....................!
real 11.49
user 11.10
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/318759/ltcube_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits outfile=/scratch/kocevski/318759/expmap_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.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/318759/ltcube_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits
.....................!
real 157.49
user 152.59
sys 4.49

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits scfile=/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits outfile=/scratch/kocevski/318759/cmap_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=164.518 yref=43.0938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits scfile=/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits outfile=/scratch/kocevski/318759/cmap_HighResolution_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=164.518 yref=43.0938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.48
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits', '/scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits', expMap='/scratch/kocevski/318759/expmap_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits', expCube='/scratch/kocevski/318759/ltcube_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318759/Model_4FGL_J1058.0+4305_daily_bin652.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318759/ft1_filtered_4FGL_J1058.0+4305_daily_bin652.fits
Spacecraft file(s): /scratch/kocevski/318759/ft2_4FGL_J1058.0+4305_daily_bin652.fits
Exposure map: /scratch/kocevski/318759/expmap_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits
Exposure cube: /scratch/kocevski/318759/ltcube_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318759/Model_4FGL_J1058.0+4305_daily_bin652.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) = 3755.68378916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4972       1.0000         .10000E-03   10000.    
     6 'norm      '    13.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40636E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25941E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1211       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5083       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    103.13       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7632       1.0000         .10000E-03   10000.    
    27 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.919       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80860       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3755.678     FROM MIGRAD    STATUS=CONVERGED   1569 CALLS     5148 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8485        .15659E-02** at limit **
   2  Prefactor     .10002E-03    16.121        .30588E-02** at limit **
   3  Prefactor     .10000E-03    22.509        .18142E-02** at limit **
   4  norm          12.482        5.2060        .87322E-04   -.20375E-04
   5  Prefactor     4.4780        7.1959        .94696E-03    .31124E-03
   6  norm          13.288        12.859        .10986E-03    .63123E-04
   7  Prefactor     .10625E-03    53.648        .11407    ** at limit **
   8  Prefactor     .10012E-03    88.760        .22080E-02** at limit **
   9  Prefactor     6.4225        7.0203        .13693E-03    .59812E-03
  10  Prefactor     .10000E-03    18.261        .18142E-02** at limit **
  11  Prefactor     .10000E-03    40.969        .18142E-02** at limit **
  12  Prefactor     .10000E-03    96.031        .18142E-02** at limit **
  13  Prefactor     70.156        157.72        .23941E-03   -.87435E-04
  14  Prefactor     .10000E-03    20.527        .18142E-02** at limit **
  15  norm          2.0447        .53296        .20826E-04   -.84887E-04
  16  Prefactor     19.747        24.868        .90112E-04    .35956E-04
  17  Prefactor     .10000E-03    22.885        .18142E-02** at limit **
  18  Prefactor     .10000E-03    58.607        .18142E-02** at limit **
  19  norm          .10000E-03    12.258        .18142E-02** at limit **
  20  norm          .10000E-03    28.496        .18142E-02** at limit **
  21  Prefactor     2.1203        2.9210        .11319E-03   -.11158E-03
  22  Prefactor     .10000E-03    58.895        .18142E-02** at limit **
  23  norm          3.5120        4.5941        .13163E-03   -.68489E-04
  24  Prefactor     1.9356        9.8795        .29845E-03   -.11237E-04
  25  Prefactor     103.09        83.842        .39594E-04   -.43213E-04
  26  norm          1.7633        1.9700        .76267E-04   -.15577E-03
  27  norm          .10000E-03    19.663        .36285E-03** at limit **
  28  Prefactor     .10000E-03    3.4774        .11107E-02** at limit **
  29  Prefactor     .10000E-03    39.416        .18142E-02** at limit **
  30  Prefactor     13.882        33.931        .10736E-03    .11754E-04
  31  Normalizat    .80842        .26309        .25935E-03   -.43637E-04
  32  Prefactor     1.0287        .30255        .28542E-03   -.57637E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 12.482
  Prefactor  = 4.47801
  norm       = 13.2884
  Prefactor  = 0.000106254
  Prefactor  = 0.000100119
  Prefactor  = 6.42254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.1555
  Prefactor  = 0.0001
  norm       = 2.04473
  Prefactor  = 19.7473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.12031
  Prefactor  = 0.0001
  norm       = 3.51196
  Prefactor  = 1.93562
  Prefactor  = 103.087
  norm       = 1.76328
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.8824
  Normalizat = 0.808422
  Prefactor  = 1.0287
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.678     FROM HESSE     STATUS=OK           635 CALLS     5783 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8486        .31317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    16.143        .61175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.482        5.2060        .34929E-05   -1.5001    
   5  Prefactor     4.4780        7.1759        .37878E-04   -1.5285    
   6  norm          13.288        12.842        .43945E-05   -1.4979    
   7  Prefactor     .10625E-03    52.258        .11612       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10012E-03    92.282        .88322E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4225        7.0060        .27387E-04   -1.5201    
  10  Prefactor     .10000E-03    18.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.156        157.72        .47883E-04   -1.4031    
  14  Prefactor     .10000E-03    20.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0447        .53295        .83303E-06   -1.5422    
  16  Prefactor     19.747        24.866        .36045E-05   -1.4819    
  17  Prefactor     .10000E-03    22.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1203        2.9201        .45278E-05   -1.5417    
  22  Prefactor     .10000E-03    58.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5120        4.5926        .52653E-05   -1.5333    
  24  Prefactor     1.9356        9.8723        .11938E-04   -1.5430    
  25  Prefactor     103.09        83.826        .79188E-05   -1.3674    
  26  norm          1.7633        1.9697        .30507E-05   -1.5442    
  27  norm          .10000E-03    19.664        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.4775        .22213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    39.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.882        33.923        .42944E-05   -1.4963    
  31  Normalizat    .80842        .26321        .10374E-04   -.99757    
  32  Prefactor     1.0287        .30285        .11417E-04   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59424e-09
Minuit parameter uncertainties:
  1  6.67203e-06
  2  0.00126762
  3  7.5693e-05
  4  5.20616
  5  7.17732
  6  12.8447
  7  0.0361884
  8  0.00663173
  9  7.00694
  10  0.000147928
  11  0.000101247
  12  0.000423854
  13  158.67
  14  0.000126185
  15  0.532954
  16  24.8788
  17  0.000119859
  18  0.000235553
  19  1.80136e-05
  20  2.09118e-05
  21  2.92032
  22  9.8635e-05
  23  4.59306
  24  8.74482
  25  83.9228
  26  1.96973
  27  5.85236e-05
  28  9.95125e-05
  29  0.000129518
  30  33.9702
  31  0.263629
  32  0.303357
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.016e+01  1.587e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.029e+00  3.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.084e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318759/likelihoodResults_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3755.24633158
delta logL = 0.431703756832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3755.23982091
delta logL = 0.438214432397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6620       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8117       1.0000          .0000       10.000    
     3 'Normalizat'    .74825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3755.240     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      373 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5800        489.47        .12892E-03   -.14925E-03
   2  Index         3.8164        6.9073        .42078E-02   -.43347E-04
   3  Normalizat    .74618        .21848        .26883E-03    .57757E-03
   4  Prefactor     1.0798        .26986        .27940E-03   -.63882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.58003
  Index      = 3.81637
  Normalizat = 0.74618
  Prefactor  = 1.07977
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.240     FROM HESSE     STATUS=OK            25 CALLS      398 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5800        86.244        .51568E-05   -1.5089    
   2  Index         3.8164        2.5129        .16831E-03   -.23900    
   3  Normalizat    .74618        .25172        .53766E-04   -1.0210    
   4  Prefactor     1.0798        .30271        .55880E-04   -.90116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34855e-08
Minuit parameter uncertainties:
  1  57.5986
  2  2.64114
  3  0.252113
  4  0.303189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318759': 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) = 3755.23978476
delta logL = 0.438250584786

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  9.580e+00  5.760e+01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  3.816e+00  2.641e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.080e+00  3.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  7.462e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 164.518 43.094
Photon Index (Free Index): 3.82 +/- 2.64
Photon Flux (Free Index): 7.29e-08 +/- 7.88e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.33e-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/318759/cmap_HighResolution_408326401_408585601_4FGL_J1058.0+4305_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='4.38e-01', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-09-02 21:59:57.446021', photon_index_error2='2.64', photon_index2='3.82', ts='0.23', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.33e-05', EG='0.81', time_epoch_completed='1630645197.45', return_code='0', job_id='318759', GAL2='1.08', EG2='0.75', return_code2='0', photon_flux_error2='7.88e-08', ts2='1.18', photon_index='2.35' WHERE bin_id='652' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 318759: <4FGL_J1058.0+4305_daily_bin652> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:46:07 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:46:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:46:43 2021
Terminated at Thu Sep  2 21:59:57 2021
Results reported at Thu Sep  2 21:59:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin652 164.518 43.0938 408326401 408585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            830 sec.

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

