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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1527
RA = 164.518, Dec = 43.0938
tmin = 635126401, tmax = 635385601
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='325229', job_status='RUN', time_executed='2021-09-02 22:09:32.252050', time_epoch_executed='1630645772.25' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325229/ft1_4FGL_J1058.0+4305_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325229/ft1_4FGL_J1058.0+4305_daily_bin1527.fits outfile=/scratch/kocevski/325229/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1527.fits ra=164.518 dec=43.0938 rad=12.0 tmin=635126401.0 tmax=635385601.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.01
user 2.82
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.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/325229/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1527.fits evtable="EVENTS" outfile="/scratch/kocevski/325229/ft1_filtered_4FGL_J1058.0+4305_daily_bin1527.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325229/ft1_filtered_4FGL_J1058.0+4305_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/325229/ltcube_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.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/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits
.....................!
real 15.58
user 15.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325229/ft1_filtered_4FGL_J1058.0+4305_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/325229/ltcube_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.fits outfile=/scratch/kocevski/325229/expmap_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.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/325229/ltcube_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.fits
.....................!
real 191.18
user 186.14
sys 4.34

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/325229/ft1_filtered_4FGL_J1058.0+4305_daily_bin1527.fits scfile=/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits outfile=/scratch/kocevski/325229/cmap_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325229/ft1_filtered_4FGL_J1058.0+4305_daily_bin1527.fits scfile=/scratch/kocevski/325229/ft2_4FGL_J1058.0+4305_daily_bin1527.fits outfile=/scratch/kocevski/325229/cmap_HighResolution_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9990.5       1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    .12740E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19328E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19572E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.194       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.1808       1.0000         .10000E-03   10000.    
    27 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    110.27       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4297       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=   1006.330     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     5767 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        1100.3       -.29209E-04** at limit **
   2  Prefactor    10000.0        2190.8        .73267E-04** at limit **
   3  Prefactor     9990.5        6512.9       -.37494E-04    .22224E-04
   4  norm          .10000E-03    30.853        .94843E-07** at limit **
   5  Prefactor    10000.0        1948.3        .43349E-04** at limit **
   6  norm          .10001E-03    210.60       -.44399E-05** at limit **
   7  Prefactor     .10005E-03    320.89        .13988E-04** at limit **
   8  Prefactor     .10000E-03    29.956       -.94916E-07** at limit **
   9  Prefactor     .10000E-03    59.682       -.28054E-06** at limit **
  10  Prefactor     .10000E-03    141.09       -.79603E-06** at limit **
  11  Prefactor     .10000E-03    139.78       -.52537E-06** at limit **
  12  Prefactor     .10001E-03    161.90       -.31371E-05** at limit **
  13  Prefactor     71.228        397.51       -.76007E-05   -.11287E-04
  14  Prefactor     71.175        137.74        .10874E-06    .11998E-04
  15  norm          1.7342        1.5603       -.16002E-06   -.55432E-03
  16  Prefactor     .10000E-03    58.579       -.28265E-07** at limit **
  17  Prefactor     27.892        88.964        .28657E-06   -.38826E-04
  18  Prefactor     .10001E-03    77.473        .18666E-05** at limit **
  19  norm          .10000E-03    135.09        .69125E-07** at limit **
  20  norm          .10000E-03    37.272       -.77990E-08** at limit **
  21  Prefactor     .10000E-03    2.5928       -.26029E-07** at limit **
  22  Prefactor     .10000E-03    33.685        .40401E-08** at limit **
  23  norm          .10000E-03    1.8546       -.59482E-08** at limit **
  24  Prefactor     2.2756        13.846       -.11291E-06   -.18582E-04
  25  Prefactor     .10000E-03    34.238       -.21721E-08** at limit **
  26  norm          5.1818        2.6891       -.43150E-07   -.63956E-04
  27  norm          .10000E-03    7.7677        .59410E-08** at limit **
  28  Prefactor     .10000E-03    5.8582       -.20921E-06** at limit **
  29  Prefactor     .10000E-03    139.46       -.50789E-06** at limit **
  30  Prefactor     110.29        55.864        .52520E-07    .63978E-05
  31  Normalizat    .10000E-01    .24041        .38196E-06** at limit **
  32  Prefactor     1.4298        .31717        .37506E-06   -.74471E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 9990.49
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 0.000100008
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 71.2281
  Prefactor  = 71.1751
  norm       = 1.73418
  Prefactor  = 0.0001
  Prefactor  = 27.8923
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27562
  Prefactor  = 0.0001
  norm       = 5.18183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.286
  Normalizat = 0.01
  Prefactor  = 1.42984
 **********
 **   18 **HESSE 
 **********

 FCN=   1006.330     FROM HESSE     STATUS=OK           633 CALLS     6400 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        864.02        .19934E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        1198.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9990.5        6276.7        .65100E-03    1.5091    
   4  norm          .10000E-03    30.913        .17344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1574.7        .21280E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    210.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    316.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.984        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    141.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    139.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    162.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.228        396.73        .23794E-03   -1.4018    
  14  Prefactor     71.175        138.72        .47577E-04   -1.4019    
  15  norm          1.7342        1.8076        .27922E-04   -1.5445    
  16  Prefactor     .10000E-03    58.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.892        103.17        .75833E-04   -1.4651    
  18  Prefactor     .10001E-03    78.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    135.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    37.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5988        .49917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.690        .18118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8583        .42209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2756        13.846        .22768E-03   -1.5406    
  25  Prefactor     .10000E-03    34.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.1818        2.7092        .34899E-04   -1.5253    
  27  norm          .10000E-03    7.7697        .86503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.9737        .14974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    139.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     110.29        56.093        .38303E-04   -1.3604    
  31  Normalizat    .10000E-01    .24110        .50560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.4298        .32286        .23738E-03   -.79524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15038e-09
Minuit parameter uncertainties:
  1  0.0213284
  2  0.0620982
  3  308.163
  4  9.98549e-05
  5  0.114517
  6  0.00253751
  7  0.007629
  8  6.73472e-05
  9  0.000269719
  10  0.000462796
  11  0.000338088
  12  0.00182926
  13  339.723
  14  139.354
  15  1.80767
  16  0.000251917
  17  103.843
  18  0.0013705
  19  2.41465e-05
  20  0.000124152
  21  1.07093e-06
  22  3.29362e-05
  23  7.73815e-09
  24  11.2302
  25  1.02673e-05
  26  2.70925
  27  5.5934e-07
  28  1.80885e-05
  29  0.00031111
  30  56.12
  31  2.50756e-07
  32  0.323322
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.123e+01  3.397e+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.430e+00  3.233e-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.000e-02  2.508e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/325229/likelihoodResults_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.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) = 1006.30300066
delta logL = 0.0266137133033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1006.29975116
delta logL = 0.0298632090125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8677       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4232       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=   1006.300     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      259 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.080        399.45        .55641E-04   -.18843E-03
   2  Index         2.8642        2.3654        .81492E-02   -.17527E-03
   3  Normalizat    .10000E-01    .26048        .49960E-02** at limit **
   4  Prefactor     1.4230        .27332        .23761E-03    .29695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.0795
  Index      = 2.86418
  Normalizat = 0.01
  Prefactor  = 1.42301
 **********
 **   18 **HESSE 
 **********

 FCN=   1006.300     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.080        299.44        .11128E-04   -1.4263    
   2  Index         2.8642        2.0720        .32597E-03   -.44135    
   3  Normalizat    .10000E-01    .26049        .99920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4230        .27321        .47522E-04   -.79719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49289e-09
Minuit parameter uncertainties:
  1  251.693
  2  2.15239
  3  8.37484e-07
  4  0.273494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325229': 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) = 1006.29974882
delta logL = 0.0298655495386

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  5.208e+01  2.517e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.864e+00  2.152e+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.423e+00  2.735e-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.000e-02  8.375e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/325229/cmap_HighResolution_635126401_635385601_4FGL_J1058.0+4305_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-02', job_status='DONE', photon_flux_upper_limit='4.06e-07', time_completed='2021-09-02 22:18:22.899355', job_id='325229', GAL2='1.42', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630646302.9', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='2.99e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1527' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:18:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 325229: <4FGL_J1058.0+4305_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1527> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 22:06:20 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:06:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 22:06:29 2021
Terminated at Thu Sep  2 22:18:23 2021
Results reported at Thu Sep  2 22:18:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1527 164.518 43.0938 635126401 635385601 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 :                                   470.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            723 sec.

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

