/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 3 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_bin653
RA = 164.518, Dec = 43.0938
tmin = 408585601, tmax = 408844801
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='318761', job_status='RUN', time_executed='2021-09-02 21:46:54.830167', time_epoch_executed='1630644414.83' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318761/ft1_4FGL_J1058.0+4305_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318761/ft1_4FGL_J1058.0+4305_daily_bin653.fits outfile=/scratch/kocevski/318761/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin653.fits ra=164.518 dec=43.0938 rad=12.0 tmin=408585601.0 tmax=408844801.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.32
user 4.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/318761/ltcube_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.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/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits
.....................!
real 13.87
user 13.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/318761/ltcube_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits outfile=/scratch/kocevski/318761/expmap_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.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/318761/ltcube_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits
.....................!
real 191.68
user 185.96
sys 4.36

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/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits scfile=/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits outfile=/scratch/kocevski/318761/cmap_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits scfile=/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits outfile=/scratch/kocevski/318761/cmap_HighResolution_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits', '/scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits', expMap='/scratch/kocevski/318761/expmap_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits', expCube='/scratch/kocevski/318761/ltcube_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318761/Model_4FGL_J1058.0+4305_daily_bin653.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/318761/ft1_filtered_4FGL_J1058.0+4305_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/318761/ft2_4FGL_J1058.0+4305_daily_bin653.fits
Exposure map: /scratch/kocevski/318761/expmap_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits
Exposure cube: /scratch/kocevski/318761/ltcube_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318761/Model_4FGL_J1058.0+4305_daily_bin653.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) = 2636.90542719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.728       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89630E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13983E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27829E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.481       1.0000         .10000E-03   10000.    
    20 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .74075       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.190       1.0000         .10000E-03   10000.    
    25 'Prefactor '    220.61       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1803       1.0000         .10000E-03   10000.    
    27 'norm      '    11.644       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .42522       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.

 FCN=   2636.882     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4464 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.735        36.697        .10577E-05    .88349E-04
   2  Prefactor     .10001E-03    167.69        .16186E-04** at limit **
   3  Prefactor     .10001E-03    208.14       -.50390E-06** at limit **
   4  norm          13.977        7.2257        .11858E-06    .13521E-03
   5  Prefactor     .10004E-03    15.526        .89043E-05** at limit **
   6  norm          19.822        17.592        .13367E-05    .14025E-03
   7  Prefactor     .10000E-03    34.331       -.13632E-05** at limit **
   8  Prefactor     .10000E-03    5.3832       -.42188E-06** at limit **
   9  Prefactor     6.0533        11.478        .36208E-05    .32551E-03
  10  Prefactor     .10000E-03    29.701       -.41378E-07** at limit **
  11  Prefactor     32.201        212.62        .32575E-05    .14231E-04
  12  Prefactor     16.481        33.617        .37844E-06    .30487E-04
  13  Prefactor     .10000E-03    489.63       -.92941E-05** at limit **
  14  Prefactor     .10000E-03    70.616       -.38307E-06** at limit **
  15  norm          1.4973        .50334       -.25912E-07    .27767E-03
  16  Prefactor     .10001E-03    93.322        .35181E-05** at limit **
  17  Prefactor     .10000E-03    30.060        .13928E-05** at limit **
  18  Prefactor     .10000E-03    82.610       -.73162E-06** at limit **
  19  norm          16.496        18.629        .33993E-06    .61641E-04
  20  norm          .10000E-03    48.980        .56239E-06** at limit **
  21  Prefactor     .10000E-03    2.0840       -.20084E-06** at limit **
  22  Prefactor     .10000E-03    39.954       -.58224E-06** at limit **
  23  norm          .73965        2.9199        .99407E-06    .45493E-03
  24  Prefactor     10.193        10.079        .26420E-06    .53640E-04
  25  Prefactor     220.54        123.89       -.26967E-06    .20428E-04
  26  norm          4.1815        3.0723        .10837E-06   -.14052E-03
  27  norm          11.645        13.785       -.40246E-06    .50580E-04
  28  Prefactor     .10000E-03    19.926        .79220E-06** at limit **
  29  Prefactor     .10000E-03    33.752       -.51543E-06** at limit **
  30  Prefactor     .10000E-03    47.541        .64422E-06** at limit **
  31  Normalizat    1.2690        .30248       -.72916E-05   -.29124E-03
  32  Prefactor     .42525        .36864        .10307E-04    .59460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.7348
  Prefactor  = 0.000100009
  Prefactor  = 0.000100009
  norm       = 13.9774
  Prefactor  = 0.000100038
  norm       = 19.8219
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.05325
  Prefactor  = 0.0001
  Prefactor  = 32.2013
  Prefactor  = 16.4808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4973
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.4964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.739648
  Prefactor  = 10.1932
  Prefactor  = 220.537
  norm       = 4.1815
  norm       = 11.6451
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26896
  Prefactor  = 0.425246
 **********
 **   18 **HESSE 
 **********

 FCN=   2636.882     FROM HESSE     STATUS=OK           661 CALLS     5125 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.735        36.753        .63593E-04   -1.4446    
   2  Prefactor     .10001E-03    11.269        .48288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    209.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.977        7.2281        .96233E-04   -1.4960    
   5  Prefactor     .10004E-03    18.009        .23145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.822        17.614        .89973E-04   -1.4817    
   7  Prefactor     .10000E-03    34.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4498        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0533        11.413        .16328E-03   -1.5216    
  10  Prefactor     .10000E-03    29.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.201        212.21        .70675E-04   -1.4572    
  12  Prefactor     16.481        33.569        .98660E-04   -1.4896    
  13  Prefactor     .10000E-03    490.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    70.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4973        .50254        .20135E-04   -1.5463    
  16  Prefactor     .10001E-03    96.442        .42842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    82.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.496        18.539        .98657E-04   -1.4895    
  20  norm          .10000E-03    48.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1183        .72267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73965        2.8840        .16446E-03   -1.5536    
  24  Prefactor     10.193        10.050        .12552E-03   -1.5069    
  25  Prefactor     220.54        124.05        .13617E-03   -1.2727    
  26  norm          4.1815        3.0733        .63035E-04   -1.5299    
  27  norm          11.645        13.782        .58699E-03   -1.5025    
  28  Prefactor     .10000E-03    20.794        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    33.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    47.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2690        .33970        .22485E-03   -.84498    
  32  Prefactor     .42525        .39325        .42910E-03   -1.1554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84723e-09
Minuit parameter uncertainties:
  1  36.774
  2  0.000627837
  3  0.00270571
  4  7.22855
  5  0.00164739
  6  17.6187
  7  0.000426047
  8  5.46634e-05
  9  11.4175
  10  8.91248e-05
  11  166.191
  12  33.6074
  13  0.0001192
  14  3.2965e-05
  15  0.502545
  16  0.00204631
  17  0.000414656
  18  0.000111763
  19  18.5456
  20  0.000100927
  21  1.33181e-05
  22  0.000234315
  23  2.88458
  24  10.0517
  25  124.196
  26  3.07346
  27  13.7858
  28  0.000345192
  29  5.30607e-05
  30  0.000208267
  31  0.340294
  32  0.395781
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.192e-04  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:  4.252e-01  3.958e-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:  1.269e+00  3.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318761/likelihoodResults_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.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) = 2636.88165276
delta logL = -9.56648182182e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2636.88165276
delta logL = -9.56584062806e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3458       1.0000          .0000       10.000    
     3 'Normalizat'    1.2690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42524       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.

 FCN=   2636.882     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    346.74        .90713E-02** at limit **
   2  Index         2.3074        6.4180        .50000        .51584E-06
   3  Normalizat    1.2690        .54343E-02    .50862E-01    .17504E-05
   4  Prefactor     .42523        .63118E-02    .96785E-01    .20555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.30744
  Normalizat = 1.26897
  Prefactor  = 0.425232
 **********
 **   18 **HESSE 
 **********

 FCN=   2636.882     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1674.6        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3074        5.2075        .50000       -.56867    
   3  Normalizat    1.2690        .12241E-01    .22485E-03   -.84497    
   4  Prefactor     .42523        .14172E-01    .42911E-03   -1.1554    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.96029e-09
Minuit parameter uncertainties:
  1  0.00204948
  2  529.862
  3  0.0122415
  4  0.0141719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318761': 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) = 2636.88164319
delta logL = 6.07087713433e-09

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  2.049e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.307e+00  5.299e+02  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:  4.252e-01  1.417e-02  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:  1.269e+00  1.224e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/318761/cmap_HighResolution_408585601_408844801_4FGL_J1058.0+4305_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-02 21:57:50.949663', job_id='318761', GAL2='0.43', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630645070.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='6.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='653' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:57:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 318761: <4FGL_J1058.0+4305_daily_bin653> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin653> 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) <bullet0041>, 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:57:51 2021
Results reported at Thu Sep  2 21:57:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin653 164.518 43.0938 408585601 408844801 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 :                                   638.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            704 sec.

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

