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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin451
RA = 194.663, Dec = -17.9958
tmin = 356227201, tmax = 356486401
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='54397', job_status='RUN', time_executed='2021-09-06 12:37:42.317208', time_epoch_executed='1630957062.32' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54397

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54397/ft1_4FGL_J1258.6-1759_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/54397/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54397/ft1_4FGL_J1258.6-1759_daily_bin451.fits outfile=/scratch/kocevski/54397/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin451.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=356227201.0 tmax=356486401.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 11.36
user 2.89
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.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/54397/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.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 5.26
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/54397/ltcube_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.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/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits
.....................!
real 7.77
user 2.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/54397/ltcube_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits outfile=/scratch/kocevski/54397/expmap_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.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/54397/ltcube_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits
.....................!
real 206.38
user 185.78
sys 4.39

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1258.6-1759 @ 194.663 -17.9958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits outfile=/scratch/kocevski/54397/cmap_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.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=194.663 yref=-17.9958 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 1.54
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits outfile=/scratch/kocevski/54397/cmap_HighResolution_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.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=194.663 yref=-17.9958 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.96
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54397/Model_4FGL_J1258.6-1759_daily_bin451.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/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits......................!
real 29.98
user 23.71
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits', '/scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits', expMap='/scratch/kocevski/54397/expmap_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits', expCube='/scratch/kocevski/54397/ltcube_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54397/Model_4FGL_J1258.6-1759_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.6-1759'

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  4.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/54397/ft1_filtered_4FGL_J1258.6-1759_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/54397/ft2_4FGL_J1258.6-1759_daily_bin451.fits
Exposure map: /scratch/kocevski/54397/expmap_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits
Exposure cube: /scratch/kocevski/54397/ltcube_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54397/Model_4FGL_J1258.6-1759_daily_bin451.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) = 1774.49447473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    299.37       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.880       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.0693       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.462       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.938       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1994       1.0000         .10000E-03   10000.    
    17 'norm      '    .11307E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.582       1.0000         .10000E-03   10000.    
    21 'norm      '    10.342       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1774.463     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2526 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     299.28        231.65       -.16648E-04   -.47078E-04
   2  Prefactor     .10000E-03    28.437        .46037E-06** at limit **
   3  Prefactor     5.8407        7.5635        .35087E-06   -.24315E-04
   4  Prefactor     .10000E-03    27.712        .26884E-05** at limit **
   5  Prefactor     29.859        39.747       -.36804E-05   -.50783E-04
   6  norm          3.1718        3.0970        .20901E-06   -.12592E-04
   7  Prefactor     .10000E-03    114.05        .23845E-04** at limit **
   8  norm          .10000E-03    7.7789        .85059E-07** at limit **
   9  norm          7.0688        15.896        .33021E-06   -.29776E-04
  10  Prefactor     22.460        20.122        .19806E-06   -.25378E-04
  11  norm          .10000E-03    4.7688        .17747E-06** at limit **
  12  norm          .10000E-03    14.150        .25855E-06** at limit **
  13  Prefactor     .10000E-03    11.679       -.86940E-08** at limit **
  14  Prefactor     .10000E-03    7.5202       -.13548E-06** at limit **
  15  Prefactor     22.031        47.972       -.10406E-05    .91766E-05
  16  norm          1.1552        41.139        .12509E-04   -.17690E-04
  17  norm          .10000E-03    23.968       -.73463E-05** at limit **
  18  Prefactor     .10000E-03    75.571       -.10399E-04** at limit **
  19  Prefactor     .10000E-03    28.861       -.53534E-06** at limit **
  20  Prefactor     48.580        35.020       -.15802E-07    .67658E-04
  21  norm          10.330        16.295       -.17270E-05   -.10677E-04
  22  Normalizat    1.0490        .63275       -.25061E-05   -.35689E-04
  23  Prefactor     1.2074        .31327       -.11461E-05   -.66214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 299.284
  Prefactor  = 0.0001
  Prefactor  = 5.84066
  Prefactor  = 0.0001
  Prefactor  = 29.8586
  norm       = 3.17176
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 7.06881
  Prefactor  = 22.4603
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0312
  norm       = 1.15515
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.5798
  norm       = 10.33
  Normalizat = 1.04897
  Prefactor  = 1.20739
 **********
 **   18 **HESSE 
 **********

 FCN=   1774.463     FROM HESSE     STATUS=OK           364 CALLS     2890 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     299.28        232.07        .11736E-03   -1.2231    
   2  Prefactor     .10000E-03    28.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8407        7.5453        .12287E-03   -1.5225    
   4  Prefactor     .10000E-03    27.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.859        39.892        .73296E-04   -1.4615    
   6  norm          3.1718        3.0893        .69268E-04   -1.5352    
   7  Prefactor     .10000E-03    114.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7818        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0688        15.877        .15088E-03   -1.5176    
  10  Prefactor     22.460        20.118        .84515E-04   -1.4760    
  11  norm          .10000E-03    4.7923        .89833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.154        .15480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.702        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5227        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.031        48.970        .85516E-04   -1.4769    
  16  norm          1.1552        44.054        .35749E-03   -1.5493    
  17  norm          .10000E-03    24.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    75.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.580        34.969        .57531E-04   -1.4313    
  21  norm          10.330        16.336        .12459E-03   -1.5065    
  22  Normalizat    1.0490        .72013        .43693E-03   -.91407    
  23  Prefactor     1.2074        .35998        .20582E-03   -.86104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01622e-10
Minuit parameter uncertainties:
  1  232.796
  2  0.000169654
  3  7.54649
  4  0.000109642
  5  39.928
  6  3.08949
  7  0.00116756
  8  5.06615e-06
  9  15.8863
  10  20.1237
  11  6.16152e-06
  12  5.33825e-06
  13  9.41531e-06
  14  5.82101e-06
  15  49.0595
  16  14.278
  17  0.000450133
  18  0.000148827
  19  4.31243e-06
  20  34.9834
  21  16.343
  22  0.726994
  23  0.360717
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  5.066e-06  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.207e+00  3.607e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.049e+00  7.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.663 -17.996
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54397/likelihoodResults_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.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) = 1774.46388003
delta logL = -0.00055858154019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1774.46332143
delta logL = 1.46708316606e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2256       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   1774.463     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    422.06        .11505E-01** at limit **
   2  alpha         1.9068        3.1828        .16588       -.33926E-08
   3  Normalizat    1.0490        .11051        .43692E-03    .84044E-05
   4  Prefactor     1.2074        .55785E-01    .20582E-03    .18664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90679
  Normalizat = 1.04897
  Prefactor  = 1.20739
 **********
 **   18 **HESSE 
 **********

 FCN=   1774.463     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2396        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9068        3.3637        .66351E-02   -.23957    
   3  Normalizat    1.0490        .68899        .17477E-04   -.91407    
   4  Prefactor     1.2074        .35009        .41164E-04   -.86104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38047e-11
Minuit parameter uncertainties:
  1  0.000119179
  2  385.642
  3  0.694991
  4  0.350766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54397': 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) = 1774.4633211
delta logL = 3.49694346369e-07

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  1.192e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.907e+00  3.856e+02  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.207e+00  3.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.049e+00  6.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.663 -17.996

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/54397/cmap_HighResolution_356227201_356486401_4FGL_J1258.6-1759_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-05', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-06 12:45:29.423376', job_id='54397', GAL2='1.21', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630957529.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='451' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 54397: <4FGL_J1258.6-1759_daily_bin451> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin451> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:32:15 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:32:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:32:16 2021
Terminated at Mon Sep  6 12:45:30 2021
Results reported at Mon Sep  6 12:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin451 194.663 -17.9958 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.6-1759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   411.07 sec.
    Max Memory :                                 1149 MB
    Average Memory :                             209.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

