/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 44 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1258.6-1759_daily_bin647
RA = 194.663, Dec = -17.9958
tmin = 407030401, tmax = 407289601
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='54700', job_status='RUN', time_executed='2021-09-06 12:34:39.361183', time_epoch_executed='1630956879.36' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54700/ft1_4FGL_J1258.6-1759_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54700/ft1_4FGL_J1258.6-1759_daily_bin647.fits outfile=/scratch/kocevski/54700/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin647.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=407030401.0 tmax=407289601.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 5.30
user 3.31
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/54700/ltcube_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.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/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits
.....................!
real 15.53
user 12.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/54700/ltcube_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits outfile=/scratch/kocevski/54700/expmap_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.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/54700/ltcube_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits
.....................!
real 197.99
user 186.25
sys 4.45

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/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits scfile=/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits outfile=/scratch/kocevski/54700/cmap_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.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
real 0.72
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits scfile=/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits outfile=/scratch/kocevski/54700/cmap_HighResolution_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.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
real 0.78
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54700/Model_4FGL_J1258.6-1759_daily_bin647.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/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits.....................!
real 74.72
user 69.96
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits', '/scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits', expMap='/scratch/kocevski/54700/expmap_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits', expCube='/scratch/kocevski/54700/ltcube_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54700/Model_4FGL_J1258.6-1759_daily_bin647.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/54700/ft1_filtered_4FGL_J1258.6-1759_daily_bin647.fits
Spacecraft file(s): /scratch/kocevski/54700/ft2_4FGL_J1258.6-1759_daily_bin647.fits
Exposure map: /scratch/kocevski/54700/expmap_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits
Exposure cube: /scratch/kocevski/54700/ltcube_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54700/Model_4FGL_J1258.6-1759_daily_bin647.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) = 8885.2116153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.377       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.027       1.0000         .10000E-03   10000.    
     8 'norm      '    9.2311       1.0000         .10000E-03   10000.    
     9 'norm      '    .67264       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2364       1.0000         .10000E-03   10000.    
    11 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.099       1.0000         .10000E-03   10000.    
    16 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.606       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82913       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=   8885.161     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2578 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.498        62.153       -.18845E-04    .23028E-03
   2  Prefactor     .10000E-03    2.2309        .21807E-06** at limit **
   3  Prefactor     7.6408        2.2227        .19775E-06    .31682E-02
   4  Prefactor     .10000E-03    16.741       -.18710E-05** at limit **
   5  Prefactor     22.377        12.260       -.56925E-06   -.62535E-03
   6  norm          4.3558        1.1887       -.48227E-07    .10397E-02
   7  Prefactor     43.049        66.853        .31894E-04    .79288E-04
   8  norm          9.2307        7.0871        .14253E-06    .15538E-03
   9  norm          .66542        3.8150       -.30494E-05   -.38348E-04
  10  Prefactor     7.2393        5.8295       -.16475E-05    .13320E-02
  11  norm          .10000E-03    .97988        .25510E-07** at limit **
  12  norm          .10004E-03    4.8511       -.71582E-06** at limit **
  13  Prefactor     .10000E-03    4.9592       -.43720E-07** at limit **
  14  Prefactor     16.135        9.0972       -.24044E-06    .32565E-04
  15  Prefactor     32.104        16.094        .98140E-06   -.84103E-05
  16  norm          .10000E-03    2.2156       -.27653E-06** at limit **
  17  norm          .10000E-03    2.4712       -.63067E-07** at limit **
  18  Prefactor     13.220        13.619       -.36631E-06   -.70856E-05
  19  Prefactor     .10000E-03    25.097        .58718E-05** at limit **
  20  Prefactor     17.607        12.139       -.94383E-07   -.30852E-04
  21  norm          .10000E-03    1.4278       -.10946E-06** at limit **
  22  Normalizat    1.2422        .22510        .17228E-06    .39938E-03
  23  Prefactor     .82919        .10628        .50968E-06    .64434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.4981
  Prefactor  = 0.0001
  Prefactor  = 7.64083
  Prefactor  = 0.0001
  Prefactor  = 22.3773
  norm       = 4.35579
  Prefactor  = 43.0493
  norm       = 9.23075
  norm       = 0.665424
  Prefactor  = 7.23926
  norm       = 0.0001
  norm       = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 16.1346
  Prefactor  = 32.104
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2203
  Prefactor  = 0.0001
  Prefactor  = 17.6066
  norm       = 0.0001
  Normalizat = 1.24224
  Prefactor  = 0.82919
 **********
 **   18 **HESSE 
 **********

 FCN=   8885.161     FROM HESSE     STATUS=OK           372 CALLS     2950 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.498        61.737        .46206E-04   -1.3968    
   2  Prefactor     .10000E-03    2.2461        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6408        2.2346        .37027E-03   -1.5155    
   4  Prefactor     .10000E-03    17.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.377        12.400        .42337E-03   -1.4762    
   6  norm          4.3558        1.1885        .51347E-04   -1.5291    
   7  Prefactor     43.049        74.172        .61116E-04   -1.4395    
   8  norm          9.2307        7.0846        .13191E-03   -1.5100    
   9  norm          .66542        17.021        .27486E-02   -1.5545    
  10  Prefactor     7.2393        5.8523        .14911E-03   -1.5170    
  11  norm          .10000E-03    1.0235        .18216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10004E-03    31.139        .40447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.135        9.1121        .99713E-04   -1.4904    
  15  Prefactor     32.104        15.963        .70724E-04   -1.4574    
  16  norm          .10000E-03    2.2308        .27137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4916        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.220        13.594        .11016E-03   -1.4981    
  19  Prefactor     .10000E-03    25.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.607        12.121        .95452E-04   -1.4869    
  21  norm          .10000E-03    1.4350        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2422        .26423        .35059E-03   -.85307    
  23  Prefactor     .82919        .12485        .20471E-03   -.98661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91552e-08
Minuit parameter uncertainties:
  1  61.7895
  2  4.05584e-06
  3  2.23461
  4  3.09243e-05
  5  12.4013
  6  1.18851
  7  74.332
  8  7.08528
  9  6.73248
  10  5.85276
  11  2.00615e-07
  12  0.00224428
  13  8.47111e-06
  14  9.11293
  15  15.9655
  16  2.25022e-05
  17  7.65822e-06
  18  13.5976
  19  0.000194877
  20  12.1228
  21  1.9482e-07
  22  0.264519
  23  0.124894
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  9.231e+00  7.085e+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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.292e-01  1.249e-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.242e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.21e-05

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) = 8884.87535103
delta logL = 0.28605017163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8884.87136214
delta logL = 0.290039052748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6920       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7418       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82610       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=   8884.871     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6898        7.5831        .13596E-03   -.15004E-03
   2  alpha         1.7412        .64241        .19679E-01    .25962E-04
   3  Normalizat    1.2584        .24877        .34860E-03    .51175E-03
   4  Prefactor     .82606        .12213        .20506E-03    .75862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.6898
  alpha      = 1.74117
  Normalizat = 1.25838
  Prefactor  = 0.826057
 **********
 **   18 **HESSE 
 **********

 FCN=   8884.871     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6898        7.7089        .27192E-04   -1.5118    
   2  alpha         1.7412        .65292        .78717E-03   -.30840    
   3  Normalizat    1.2584        .24894        .69721E-04   -.84817    
   4  Prefactor     .82606        .12222        .41011E-04   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2234e-10
Minuit parameter uncertainties:
  1  7.7098
  2  0.661382
  3  0.24918
  4  0.12226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54700': 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) = 8884.87136169
delta logL = 0.290039509924

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  8.690e+00  7.710e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.741e+00  6.614e-01  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:  8.261e-01  1.223e-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.258e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 1.74 +/- 0.66
Photon Flux (Free Index): 2.59e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/54700/cmap_HighResolution_407030401_407289601_4FGL_J1258.6-1759_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='1.96e-05', photon_flux_error='3.22e-08', dlogl='2.90e-01', energy_flux='1.58e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-06 12:47:49.946156', photon_index_error2='0.66', photon_index2='1.74', ts='5.21', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.24', time_epoch_completed='1630957669.95', return_code='0', job_id='54700', GAL2='0.83', EG2='1.26', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.95e-08', ts2='5.77', photon_index='2.23' WHERE bin_id='647' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:47:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 54700: <4FGL_J1258.6-1759_daily_bin647> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin647> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:32:42 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:32:43 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:43 2021
Terminated at Mon Sep  6 12:47:51 2021
Results reported at Mon Sep  6 12:47:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin647 194.663 -17.9958 407030401 407289601 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 :                                   752.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

