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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin204
RA = 194.717, Dec = -22.3257
tmin = 292204801, tmax = 292464001
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='62077', job_status='RUN', time_executed='2021-09-06 12:57:08.154520', time_epoch_executed='1630958228.15' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62077/ft1_4FGL_J1258.8-2219_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62077/ft1_4FGL_J1258.8-2219_daily_bin204.fits outfile=/scratch/kocevski/62077/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin204.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.53
user 9.15
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/62077/ltcube_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.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/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits
.....................!
real 11.81
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/62077/ltcube_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits outfile=/scratch/kocevski/62077/expmap_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.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/62077/ltcube_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits
.....................!
real 190.62
user 184.84
sys 4.38

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/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits scfile=/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits outfile=/scratch/kocevski/62077/cmap_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits scfile=/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits outfile=/scratch/kocevski/62077/cmap_HighResolution_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62077/Model_4FGL_J1258.8-2219_daily_bin204.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/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits.....................!
real 66.33
user 64.91
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits', '/scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits', expMap='/scratch/kocevski/62077/expmap_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits', expCube='/scratch/kocevski/62077/ltcube_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62077/Model_4FGL_J1258.8-2219_daily_bin204.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/62077/ft1_filtered_4FGL_J1258.8-2219_daily_bin204.fits
Spacecraft file(s): /scratch/kocevski/62077/ft2_4FGL_J1258.8-2219_daily_bin204.fits
Exposure map: /scratch/kocevski/62077/expmap_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits
Exposure cube: /scratch/kocevski/62077/ltcube_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62077/Model_4FGL_J1258.8-2219_daily_bin204.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) = 3350.08781897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.921       1.0000         .10000E-03   10000.    
    13 'norm      '    12.046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7345       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5728       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.666       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.7036       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82613       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=   3350.033     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3244 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.464       -.15446E-06** at limit **
   2  Prefactor     .10000E-03    116.51        .12969E-05** at limit **
   3  Prefactor     17.533        22.902        .79093E-07   -.82118E-06
   4  Prefactor     .10000E-03    27.412        .83478E-07** at limit **
   5  Prefactor     .10000E-03    31.930        .18787E-06** at limit **
   6  Prefactor     .10000E-03    12.089        .70619E-07** at limit **
   7  Prefactor     5.8222        3.5213       -.13299E-07   -.27324E-05
   8  Prefactor     .10000E-03    7.1104        .35938E-07** at limit **
   9  Prefactor     12.437        14.318       -.20540E-07   -.73021E-06
  10  norm          3.4857        2.0132        .22366E-07   -.20471E-04
  11  Prefactor     .10000E-03    67.072        .53669E-07** at limit **
  12  norm          15.917        14.942        .12836E-07   -.93300E-06
  13  norm          12.066        14.772       -.34916E-06   -.11194E-04
  14  Prefactor     3.7028        14.668        .10018E-05    .63784E-05
  15  norm          .10000E-03    3.8460        .41398E-07** at limit **
  16  norm          .10000E-03    1.8920        .22157E-07** at limit **
  17  norm          2.5742        17.481        .10641E-05   -.88588E-06
  18  Prefactor     6.3308        16.899        .43567E-05   -.41307E-05
  19  Prefactor     4.8970        53.103       -.26856E-05   -.39674E-04
  20  Prefactor     .10000E-03    5.8505       -.17601E-07** at limit **
  21  Prefactor     .10000E-03    17.232       -.85416E-07** at limit **
  22  Prefactor     18.661        17.635       -.12265E-07    .36766E-06
  23  Prefactor     .10000E-03    9.6950        .21380E-07** at limit **
  24  norm          .10000E-03    2.5169       -.38775E-07** at limit **
  25  norm          .10000E-03    16.102        .11089E-06** at limit **
  26  Normalizat    1.7051        .38709        .11802E-05   -.36333E-04
  27  Prefactor     .82543        .17722       -.12352E-05    .25399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.5328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.82217
  Prefactor  = 0.0001
  Prefactor  = 12.4371
  norm       = 3.48566
  Prefactor  = 0.0001
  norm       = 15.9169
  norm       = 12.0665
  Prefactor  = 3.70276
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.5742
  Prefactor  = 6.33083
  Prefactor  = 4.897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6614
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.70513
  Prefactor  = 0.825434
 **********
 **   18 **HESSE 
 **********

 FCN=   3350.033     FROM HESSE     STATUS=OK           484 CALLS     3728 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.533        22.900        .95648E-04   -1.4870    
   4  Prefactor     .10000E-03    27.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8222        3.5197        .82316E-04   -1.5225    
   8  Prefactor     .10000E-03    7.1139        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.437        14.327        .11357E-03   -1.5002    
  10  norm          3.4857        2.0109        .59263E-04   -1.5335    
  11  Prefactor     .10000E-03    67.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.917        14.950        .10038E-03   -1.4910    
  13  norm          12.066        14.418        .11542E-03   -1.5013    
  14  Prefactor     3.7028        14.289        .20894E-03   -1.5323    
  15  norm          .10000E-03    3.8661        .11084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9022        .77745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5742        17.491        .25447E-03   -1.5387    
  18  Prefactor     6.3308        17.114        .79724E-03   -1.5205    
  19  Prefactor     4.8970        54.223        .17882E-03   -1.5265    
  20  Prefactor     .10000E-03    5.8556        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.661        17.657        .92703E-04   -1.4844    
  23  Prefactor     .10000E-03    9.7709        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5177        .89680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    16.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.7051        .45779        .32428E-03   -.72167    
  27  Prefactor     .82543        .20772        .20668E-03   -.98797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01674e-11
Minuit parameter uncertainties:
  1  0.000154634
  2  0.000807737
  3  22.9112
  4  3.11498e-05
  5  1.52533e-06
  6  2.36638e-06
  7  3.51983
  8  4.85406e-07
  9  14.3305
  10  2.01098
  11  9.89151e-07
  12  14.954
  13  14.4225
  14  14.3018
  15  5.97688e-07
  16  7.3216e-07
  17  13.4256
  18  17.1274
  19  32.6275
  20  7.15378e-07
  21  4.86435e-05
  22  17.6621
  23  3.23818e-06
  24  1.13229e-07
  25  4.49506e-05
  26  0.458936
  27  0.207922
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.207e+01  1.442e+01  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:  8.254e-01  2.079e-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.705e+00  4.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 9.73e-08 +/- 1.16e-07
Energy Flux (Fixed Index): 3.44e-05 +/- 4.12e-05

TS (Fixed Index): 2.46
Ra Dec: 194.717 -22.326
Photon Flux Upper Limit: 2.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62077/likelihoodResults_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3349.95919983
delta logL = 0.0733439923056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3349.94944672
delta logL = 0.0830970987809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6290       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8839       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84703       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.

 FCN=   3349.949     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      271 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6060        131.59        .34115E-02    .20460E-03
   2  alpha         2.8865        3.8423        .32152        .41381E-04
   3  Normalizat    1.6303        .16826        .74516E-01   -.26281E-04
   4  Prefactor     .84751        .60220E-01    .44326E-01   -.12944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60599
  alpha      = 2.88646
  Normalizat = 1.63028
  Prefactor  = 0.847513
 **********
 **   18 **HESSE 
 **********

 FCN=   3349.949     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6060        19.198        .11917E-03   -1.5121    
   2  alpha         2.8865        1.8232        .10973E-01    .15520    
   3  Normalizat    1.6303        .51589        .32972E-03   -.74181    
   4  Prefactor     .84751        .22444        .20420E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42587e-11
Minuit parameter uncertainties:
  1  19.2119
  2  2.05094
  3  0.517595
  4  0.224689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62077': 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) = 3349.94944302
delta logL = 0.0831007984416

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  8.606e+00  1.921e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.886e+00  2.051e+00  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:  8.475e-01  2.247e-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.630e+00  5.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 2.89 +/- 2.05
Photon Flux (Free Index): 1.51e-07 +/- 1.88e-07
Energy Flux (Free Index): 3.42e-05 +/- 2.61e-05

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/62077/cmap_HighResolution_292204801_292464001_4FGL_J1258.8-2219_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='9.73e-08', energy_flux2='3.42e-05', photon_flux_error='1.16e-07', dlogl='8.31e-02', energy_flux='3.44e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-06 13:07:51.849670', photon_index_error2='2.05', photon_index2='2.89', ts='2.46', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.87e-07', energy_flux_error2='2.61e-05', EG='1.71', time_epoch_completed='1630958871.85', return_code='0', job_id='62077', GAL2='0.85', EG2='1.63', return_code2='0', energy_flux_error='4.12e-05', photon_flux_error2='1.88e-07', ts2='2.68', photon_index='2.33' WHERE bin_id='204' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 62077: <4FGL_J1258.8-2219_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin204 194.717 -22.3257 292204801 292464001 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

