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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1524
RA = 164.518, Dec = 43.0938
tmin = 634348801, tmax = 634608001
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='325225', job_status='RUN', time_executed='2021-09-02 22:09:13.618022', time_epoch_executed='1630645753.62' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325225

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325225/ft1_4FGL_J1058.0+4305_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325225/ft1_4FGL_J1058.0+4305_daily_bin1524.fits outfile=/scratch/kocevski/325225/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1524.fits ra=164.518 dec=43.0938 rad=12.0 tmin=634348801.0 tmax=634608001.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.74
user 3.52
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/325225/ltcube_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.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/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits
.....................!
real 14.51
user 14.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/325225/ltcube_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.fits outfile=/scratch/kocevski/325225/expmap_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.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/325225/ltcube_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.fits
.....................!
real 191.85
user 186.04
sys 5.04

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/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits scfile=/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits outfile=/scratch/kocevski/325225/cmap_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits scfile=/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits outfile=/scratch/kocevski/325225/cmap_HighResolution_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.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/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/325225/ft2_4FGL_J1058.0+4305_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325225/Model_4FGL_J1058.0+4305_daily_bin1524.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/325225/ft1_filtered_4FGL_J1058.0+4305_daily_bin1524.fits.....................!
real 24.57
user 23.26
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8236       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.698       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24543E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.355       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9582       1.0000         .10000E-03   10000.    
    20 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11054E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    66.725       1.0000         .10000E-03   10000.    
    26 'norm      '    .93171       1.0000         .10000E-03   10000.    
    27 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    103.62       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .23554       1.0000         .10000E-01   10.000    
    32 'Prefactor '    2.0656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1833.739     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     4498 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8115        1.1962       -.74627E-06   -.55355E-04
   2  Prefactor     .10000E-03    16.484       -.13224E-06** at limit **
   3  Prefactor     35.665        2.8175        .20135E-06   -.50925E-03
   4  norm          .10000E-03    2.3536       -.12416E-05** at limit **
   5  Prefactor     .10077E-03    16.889        .36956E-04** at limit **
   6  norm          .10000E-03    9.2634       -.28531E-06** at limit **
   7  Prefactor     .10028E-03    22.294       -.32476E-04** at limit **
   8  Prefactor     .10000E-03    3.5708        .10145E-05** at limit **
   9  Prefactor     .10000E-03    3.9427        .11964E-05** at limit **
  10  Prefactor     .10037E-03    28.371       -.25009E-05** at limit **
  11  Prefactor     .10023E-03    40.892       -.43407E-04** at limit **
  12  Prefactor     .10490E-03    1785.2       -.32543E-04** at limit **
  13  Prefactor     .13393E-03    65.948        .12049E-05** at limit **
  14  Prefactor     64.381        2.2376        .93734E-07   -.59294E-04
  15  norm          1.1342        .61981       -.40596E-07   -.22373E-03
  16  Prefactor     .10001E-03    21.928        .31082E-05** at limit **
  17  Prefactor     43.804        2.2819        .19980E-05   -.21282E-02
  18  Prefactor     .10016E-03    146.05        .69359E-04** at limit **
  19  norm          5.9480        1.4069       -.20033E-05   -.10760E-04
  20  norm          .10063E-03    22.196        .86463E-05** at limit **
  21  Prefactor     2.3458        5.4623        .52810E-06   -.11596E-03
  22  Prefactor     .10080E-03    70.655       -.84899E-04** at limit **
  23  norm          .10003E-03    23.133        .38523E-04** at limit **
  24  Prefactor     .10000E-03    14.651       -.13948E-05** at limit **
  25  Prefactor     66.698        2.6359       -.10052E-05    .16730E-02
  26  norm          .93112        1.3803       -.68600E-07   -.13993E-03
  27  norm          .10000E-03    9.5766       -.65648E-06** at limit **
  28  Prefactor     .10000E-03    8.2763        .74835E-06** at limit **
  29  Prefactor     .10000E-03    21.756        .38655E-04** at limit **
  30  Prefactor     103.59        2.6159       -.24422E-06    .30983E-03
  31  Normalizat    .23631        .33177       -.35123E-05   -.27727E-03
  32  Prefactor     2.0650        .46369       -.12955E-05   -.56291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81152
  Prefactor  = 0.0001
  Prefactor  = 35.6651
  norm       = 0.0001
  Prefactor  = 0.000100769
  norm       = 0.000100001
  Prefactor  = 0.000100285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100372
  Prefactor  = 0.000100235
  Prefactor  = 0.000104902
  Prefactor  = 0.000133933
  Prefactor  = 64.381
  norm       = 1.1342
  Prefactor  = 0.00010001
  Prefactor  = 43.8038
  Prefactor  = 0.00010016
  norm       = 5.94798
  norm       = 0.000100629
  Prefactor  = 2.34577
  Prefactor  = 0.0001008
  norm       = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 66.6983
  norm       = 0.931119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.59
  Normalizat = 0.236309
  Prefactor  = 2.06503
 **********
 **   18 **HESSE 
 **********

 FCN=   1833.739     FROM HESSE     STATUS=OK           737 CALLS     5235 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8115        33.835        .60509E-02   -1.5373    
   2  Prefactor     .10000E-03    16.200        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.665        55.832        .16769E-02   -1.4513    
   4  norm          .10000E-03    2.3452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10077E-03    5.9706        .56288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.2703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10028E-03    26.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10037E-03    33.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10023E-03    47.426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10490E-03    73.039        .12422       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13393E-03    973.32        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     64.381        105.37        .12506E-02   -1.4101    
  15  norm          1.1342        .65290        .54521E-02   -1.5495    
  16  Prefactor     .10001E-03    21.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.804        38.901        .15141E-02   -1.4383    
  18  Prefactor     .10016E-03    148.81        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9480        19.974        .41126E-02   -1.5220    
  20  norm          .10063E-03    68.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3458        6.0991        .66818E-02   -1.5402    
  22  Prefactor     .10080E-03    86.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    4.4462        .57985E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     66.698        89.525        .12283E-02   -1.4073    
  26  norm          .93112        1.5146        .12922E-01   -1.5515    
  27  norm          .10000E-03    9.5807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.2040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    60.254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     103.59        66.080        .98752E-03   -1.3669    
  31  Normalizat    .23631        .38716        .10114       -1.2686    
  32  Prefactor     2.0650        .49353        .52113E-01   -.62734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76724e-07
Minuit parameter uncertainties:
  1  19.5202
  2  0.000142778
  3  55.9142
  4  2.26503e-05
  5  0.00428555
  6  0.000216265
  7  0.00549962
  8  6.12056e-05
  9  4.23186e-06
  10  0.00705714
  11  0.006681
  12  0.0378884
  13  0.369642
  14  105.675
  15  0.6529
  16  0.000938732
  17  38.924
  18  0.00978539
  19  19.9967
  20  0.0131245
  21  6.10071
  22  0.0166206
  23  0.000725205
  24  5.01477e-05
  25  89.7069
  26  1.51467
  27  7.61422e-05
  28  5.07226e-05
  29  4.4234e-05
  30  66.1267
  31  0.391674
  32  0.49476
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.339e-04  3.696e-01  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:  2.065e+00  4.948e-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:  2.363e-01  3.917e-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/325225/likelihoodResults_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.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) = 1833.73886369
delta logL = -4.68977668788e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1833.73886369
delta logL = -4.6895372634e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3458       1.0000          .0000       10.000    
     3 'Normalizat'    .23631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0650       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=   1833.739     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      219 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    673.93        .90713E-02** at limit **
   2  Index         2.2290        8.8407        .50000        .49842E-06
   3  Normalizat    .23631        .45071E-02    .10114       -.23976E-04
   4  Prefactor     2.0650        .63191E-02    .52113E-01   -.10162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.229
  Normalizat = 0.23631
  Prefactor  = 2.06504
 **********
 **   18 **HESSE 
 **********

 FCN=   1833.739     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6582.1        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2290        5.4934        .50000       -.58740    
   3  Normalizat    .23631        .10213E-01    .44737E-03   -1.2686    
   4  Prefactor     2.0650        .14333E-01    .23033E-03   -.62734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65454e-09
Minuit parameter uncertainties:
  1  0.0089007
  2  451.643
  3  0.0102134
  4  0.0143329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325225': 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) = 1833.73885897
delta logL = 3.76865045837e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  8.901e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.229e+00  4.516e+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:  2.065e+00  1.433e-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:  2.363e-01  1.021e-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/325225/cmap_HighResolution_634348801_634608001_4FGL_J1058.0+4305_daily_bin1524.png

Cleaning up...

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

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 22:19:53.398417', job_id='325225', GAL2='2.07', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1630646393.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='2.07', dlogl='3.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1524' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:19:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 325225: <4FGL_J1058.0+4305_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1524> 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) <bullet0256>, 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:19:56 2021
Results reported at Thu Sep  2 22:19:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1524 164.518 43.0938 634348801 634608001 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 :                                   564.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             252.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            816 sec.

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

