/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 62 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1258.8-2219_daily_bin233
RA = 194.717, Dec = -22.3257
tmin = 299721601, tmax = 299980801
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='62121', job_status='RUN', time_executed='2021-09-06 12:57:00.319233', time_epoch_executed='1630958220.32' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62121/ft1_4FGL_J1258.8-2219_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62121/ft1_4FGL_J1258.8-2219_daily_bin233.fits outfile=/scratch/kocevski/62121/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin233.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=299721601.0 tmax=299980801.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.59
user 3.15
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.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/62121/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin233.fits evtable="EVENTS" outfile="/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/62121/ltcube_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.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/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits
.....................!
real 11.62
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/62121/ltcube_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits outfile=/scratch/kocevski/62121/expmap_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.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/62121/ltcube_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits
.....................!
real 190.73
user 185.36
sys 4.60

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 182 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1258.8-2219 @ 194.717 -22.3257

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits outfile=/scratch/kocevski/62121/cmap_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.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.717 yref=-22.3257 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits outfile=/scratch/kocevski/62121/cmap_HighResolution_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.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.717 yref=-22.3257 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62121/Model_4FGL_J1258.8-2219_daily_bin233.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits.....................!
real 115.61
user 113.94
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits', '/scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits', expMap='/scratch/kocevski/62121/expmap_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits', expCube='/scratch/kocevski/62121/ltcube_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62121/Model_4FGL_J1258.8-2219_daily_bin233.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.8-2219'

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  4.778e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62121/ft1_filtered_4FGL_J1258.8-2219_daily_bin233.fits
Spacecraft file(s): /scratch/kocevski/62121/ft2_4FGL_J1258.8-2219_daily_bin233.fits
Exposure map: /scratch/kocevski/62121/expmap_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits
Exposure cube: /scratch/kocevski/62121/ltcube_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62121/Model_4FGL_J1258.8-2219_daily_bin233.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) = 7059.28809081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12430E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.0177       1.0000         .10000E-03   10000.    
    13 'norm      '    .11616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0809       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1290       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.935       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4018       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8353       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0589       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7059.271     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3287 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.924        60.346        .13850E-05    .60854E-04
   2  Prefactor     .10000E-03    20.814       -.34796E-05** at limit **
   3  Prefactor     .10000E-03    12.278       -.33112E-06** at limit **
   4  Prefactor     .10000E-03    43.274       -.59662E-05** at limit **
   5  Prefactor     .10000E-03    22.009        .13840E-05** at limit **
   6  Prefactor     .10000E-03    3.5449        .62837E-07** at limit **
   7  Prefactor     4.4147        2.1792        .27401E-07   -.50734E-04
   8  Prefactor     25.646        17.739       -.26140E-06   -.13901E-04
   9  Prefactor     .10000E-03    8.1368        .47461E-06** at limit **
  10  norm          11.421        2.1012       -.39776E-07    .11762E-03
  11  Prefactor     .10001E-03    332.37        .36026E-05** at limit **
  12  norm          9.0186        10.749        .13966E-05    .46695E-03
  13  norm          .10051E-03    13.339       -.66391E-05** at limit **
  14  Prefactor     4.0822        4.5481        .19565E-05    .19068E-02
  15  norm          2.1289        4.9955        .94488E-06    .21630E-03
  16  norm          .10000E-03    .69287       -.51413E-08** at limit **
  17  norm          11.935        10.066        .11047E-06   -.11268E-04
  18  Prefactor     1.4834        7.6003        .14946E-05    .16719E-03
  19  Prefactor     3.2710        27.905        .28735E-06    .45406E-05
  20  Prefactor     .10000E-03    15.665        .15338E-05** at limit **
  21  Prefactor     .10000E-03    16.401       -.69264E-06** at limit **
  22  Prefactor     .10000E-03    21.712        .15121E-05** at limit **
  23  Prefactor     9.4024        10.867       -.11604E-06   -.14015E-03
  24  norm          2.8353        3.9558        .10651E-06    .17220E-04
  25  norm          .10000E-03    8.1442       -.41419E-06** at limit **
  26  Normalizat    1.0588        .27220       -.12877E-05   -.64723E-04
  27  Prefactor     1.0159        .12422       -.58340E-06   -.10547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41467
  Prefactor  = 25.6458
  Prefactor  = 0.0001
  norm       = 11.421
  Prefactor  = 0.000100007
  norm       = 9.01859
  norm       = 0.000100513
  Prefactor  = 4.08223
  norm       = 2.12887
  norm       = 0.0001
  norm       = 11.9354
  Prefactor  = 1.48339
  Prefactor  = 3.27102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40245
  norm       = 2.83533
  norm       = 0.0001
  Normalizat = 1.05879
  Prefactor  = 1.01593
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.271     FROM HESSE     STATUS=OK           488 CALLS     3775 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.924        60.474        .24902E-03   -1.4095    
   2  Prefactor     .10000E-03    20.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5759        .15433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4147        2.1762        .84751E-04   -1.5288    
   8  Prefactor     25.646        17.753        .79100E-04   -1.4695    
   9  Prefactor     .10000E-03    8.2273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.421        2.0991        .49384E-04   -1.5032    
  11  Prefactor     .10001E-03    334.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0186        10.817        .66734E-03   -1.5107    
  13  norm          .10051E-03    39.919        .33753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0822        4.8634        .97523E-03   -1.5304    
  15  norm          2.1289        4.9769        .27679E-03   -1.5416    
  16  norm          .10000E-03    .69410        .68294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.935        10.056        .11596E-03   -1.5017    
  18  Prefactor     1.4834        7.5652        .35233E-03   -1.5464    
  19  Prefactor     3.2710        27.852        .22390E-03   -1.5346    
  20  Prefactor     .10000E-03    15.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4024        10.859        .13070E-03   -1.5095    
  24  norm          2.8353        3.9454        .19219E-03   -1.5371    
  25  norm          .10000E-03    8.1440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0588        .31663        .40105E-03   -.91086    
  27  Prefactor     1.0159        .14547        .19001E-03   -.92201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40371e-08
Minuit parameter uncertainties:
  1  60.5318
  2  0.000203625
  3  1.60425e-05
  4  0.000505576
  5  0.000109293
  6  3.63707e-06
  7  2.17623
  8  17.7566
  9  2.49729e-05
  10  2.09916
  11  0.00304076
  12  10.819
  13  0.00905347
  14  4.86382
  15  4.97791
  16  1.00111e-06
  17  10.0578
  18  6.701
  19  19.1016
  20  0.000109722
  21  2.43255e-05
  22  0.000112542
  23  10.861
  24  3.94578
  25  1.58593e-05
  26  0.317193
  27  0.14553
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.005e-04  9.053e-03  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.016e+00  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.059e+00  3.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.717 -22.326
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62121/likelihoodResults_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.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) = 7059.27144822
delta logL = -0.000116678433187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7059.27135534
delta logL = -2.37963140535e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23485E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   7059.271     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      286 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10216E-03    8.4933        .58452E-01** at limit **
   2  alpha         1.9299        2.6416        .50000        .79308E-07
   3  Normalizat    1.0588        .88493E-02    .40105E-03   -.25399E-04
   4  Prefactor     1.0159        .41458E-02    .19001E-03   -.69882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102161
  alpha      = 1.92995
  Normalizat = 1.05879
  Prefactor  = 1.01593
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.271     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      325 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10216E-03    8.1025        .59407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9299        3.4650        .50000       -.23004    
   3  Normalizat    1.0588        .87246E-02    .16042E-04   -.91086    
   4  Prefactor     1.0159        .40874E-02    .38003E-04   -.92201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.86201e-11
Minuit parameter uncertainties:
  1  0.00836912
  2  247.982
  3  0.0087246
  4  0.00408741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62121': 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) = 7059.27133054
delta logL = 1.00089528132e-06

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.022e-04  8.369e-03  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  1.930e+00  2.480e+02  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.016e+00  4.087e-03  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.059e+00  8.725e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.717 -22.326

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/62121/cmap_HighResolution_299721601_299980801_4FGL_J1258.8-2219_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-06 13:11:43.253509', job_id='62121', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630959103.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='233' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 62121: <4FGL_J1258.8-2219_daily_bin233> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin233> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 12:55:34 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:55:36 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:55:36 2021
Terminated at Mon Sep  6 13:11:44 2021
Results reported at Mon Sep  6 13:11:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin233 194.717 -22.3257 299721601 299980801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.8-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   872.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

