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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin307
RA = 194.717, Dec = -22.3257
tmin = 318902401, tmax = 319161601
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='62230', job_status='RUN', time_executed='2021-09-06 12:56:25.556089', time_epoch_executed='1630958185.56' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62230/ft1_4FGL_J1258.8-2219_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62230/ft1_4FGL_J1258.8-2219_daily_bin307.fits outfile=/scratch/kocevski/62230/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin307.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=318902401.0 tmax=319161601.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.46
user 3.18
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.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/62230/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/62230/ltcube_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.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/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits
.....................!
real 12.50
user 12.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/62230/ltcube_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.fits outfile=/scratch/kocevski/62230/expmap_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.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/62230/ltcube_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.fits
.....................!
real 191.66
user 185.55
sys 5.59

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/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits outfile=/scratch/kocevski/62230/cmap_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits outfile=/scratch/kocevski/62230/cmap_HighResolution_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.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.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/62230/ft2_4FGL_J1258.8-2219_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62230/Model_4FGL_J1258.8-2219_daily_bin307.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/62230/ft1_filtered_4FGL_J1258.8-2219_daily_bin307.fits.....................!
real 107.15
user 105.48
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.408       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55855E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4137       1.0000         .10000E-03   10000.    
    11 'Prefactor '    222.22       1.0000         .10000E-03   10000.    
    12 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12897E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .97923       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.775       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.028       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6974       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74803       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=   6515.419     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3241 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.823        82.079        .43130E-06    .25514E-04
   2  Prefactor     45.331        65.339       -.79908E-06   -.78371E-04
   3  Prefactor     .10000E-03    66.552       -.22500E-04** at limit **
   4  Prefactor     .10000E-03    32.028       -.32194E-05** at limit **
   5  Prefactor     .10000E-03    11.650       -.77077E-06** at limit **
   6  Prefactor     7.3010        6.4123       -.52422E-08   -.53155E-05
   7  Prefactor     4.6362        2.2765       -.21197E-08   -.16383E-04
   8  Prefactor     .10000E-03    7.0315        .10899E-06** at limit **
   9  Prefactor     .10000E-03    8.3045        .28685E-06** at limit **
  10  norm          1.4137        1.1753        .28169E-07   -.26178E-03
  11  Prefactor     222.22        108.07       -.12313E-05   -.23358E-03
  12  norm          .10000E-03    11.640        .81736E-06** at limit **
  13  norm          .10001E-03    4.7816        .16548E-05** at limit **
  14  Prefactor     .10000E-03    2.8920        .14946E-06** at limit **
  15  norm          .10000E-03    3.8284        .26449E-06** at limit **
  16  norm          .97899        2.4951        .10275E-05    .50126E-04
  17  norm          1.8328        13.407        .22496E-05    .95519E-05
  18  Prefactor     .10000E-03    3.2367        .11640E-06** at limit **
  19  Prefactor     .10000E-03    6.4855        .14410E-06** at limit **
  20  Prefactor     .10000E-03    18.319        .37462E-06** at limit **
  21  Prefactor     15.680        20.959       -.33610E-07   -.97510E-05
  22  Prefactor     .10000E-03    7.0713        .25646E-06** at limit **
  23  Prefactor     22.774        15.394       -.20661E-06   -.44902E-04
  24  norm          .10000E-03    4.7187        .26979E-06** at limit **
  25  norm          12.022        19.113        .23498E-07   -.12459E-04
  26  Normalizat    1.6973        .26909        .90963E-06   -.20255E-03
  27  Prefactor     .74810        .11917       -.11725E-05   -.14980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8229
  Prefactor  = 45.3311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.301
  Prefactor  = 4.63622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41368
  Prefactor  = 222.22
  norm       = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.978992
  norm       = 1.83284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6795
  Prefactor  = 0.0001
  Prefactor  = 22.7736
  norm       = 0.0001
  norm       = 12.022
  Normalizat = 1.6973
  Prefactor  = 0.748102
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.419     FROM HESSE     STATUS=OK           482 CALLS     3723 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.823        82.129        .29264E-03   -1.4338    
   2  Prefactor     45.331        65.493        .59499E-04   -1.4360    
   3  Prefactor     .10000E-03    66.505        .42203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3010        6.4213        .14845E-03   -1.5167    
   7  Prefactor     4.6362        2.2793        .81846E-04   -1.5277    
   8  Prefactor     .10000E-03    7.0529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4137        1.1675        .75899E-04   -1.5470    
  11  Prefactor     222.22        102.25        .27136E-04   -1.2715    
  12  norm          .10000E-03    12.076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    10.817        .31256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9002        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8644        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .97899        2.4418        .19567E-03   -1.5510    
  17  norm          1.8328        13.449        .30816E-03   -1.5437    
  18  Prefactor     .10000E-03    3.2402        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.680        20.954        .10115E-03   -1.4916    
  22  Prefactor     .10000E-03    7.0993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.774        15.395        .83933E-04   -1.4753    
  24  norm          .10000E-03    4.7717        .17121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.022        19.116        .11551E-03   -1.5014    
  26  Normalizat    1.6973        .31729        .32414E-03   -.72376    
  27  Prefactor     .74810        .13988        .20495E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26293e-09
Minuit parameter uncertainties:
  1  82.3289
  2  65.5975
  3  0.00032277
  4  2.74888e-05
  5  4.30002e-06
  6  6.42188
  7  2.27936
  8  8.9509e-07
  9  3.47702e-06
  10  1.16749
  11  102.332
  12  4.58734e-06
  13  0.000657758
  14  2.75085e-06
  15  1.39936e-07
  16  2.4421
  17  9.93241
  18  1.3444e-06
  19  9.89853e-06
  20  7.52444e-06
  21  20.9638
  22  8.90262e-07
  23  15.3972
  24  5.44329e-06
  25  19.1261
  26  0.317675
  27  0.139948
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  6.578e-04  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:  7.481e-01  1.399e-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.697e+00  3.177e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62230/likelihoodResults_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.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) = 6515.41972726
delta logL = -0.000439453903709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6515.41929007
delta logL = -2.26137944992e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12306E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3417       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74831       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6515.419     FROM MIGRAD    STATUS=FAILED        94 CALLS      257 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10140E-03    70.033        .31234E-02** at limit **
   2  alpha         2.5558        3.0349        .16503       -.16325E-05
   3  Normalizat    1.6973        .30911        .32414E-03    .51733E-04
   4  Prefactor     .74810        .13748        .20495E-03    .72389E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6515.419     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      381 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10140E-03    70.033        .61805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5558        3.0349        .38597E-03    .22311E-01
   3  Normalizat    1.6973        .30911        .40005E-04   -.72375    
   4  Prefactor     .74810        .13748        .30568E-04   -1.0167    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6515.415     FROM MIGRAD    STATUS=FAILED       114 CALLS      495 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15982E-01    74.654        .55978E-03    .14838E-01
   2  alpha         4.9714        2.5116        .26404E-02   -.12917E-07
   3  Normalizat    1.6881        .20201        .25931E-05    .13240E-03
   4  Prefactor     .75039        .72526E-01    .16396E-05    .24130E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0159824
  alpha      = 4.97136
  Normalizat = 1.68811
  Prefactor  = 0.750393
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.415     FROM HESSE     STATUS=OK            25 CALLS      520 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15982E-01    10.653        .11196E-03   -1.5683    
   2  alpha         4.9714        2.6150        .10562E-03    1.4193    
   3  Normalizat    1.6881        .33612        .51862E-06   -.72621    
   4  Prefactor     .75039        .14109        .32792E-06   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43232e-09
Minuit parameter uncertainties:
  1  0.82282
  2  23.825
  3  0.336579
  4  0.141162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62230': 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): 1
logL (Free Index) = 6515.41477572
delta logL = 0.00451208313461

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.598e-02  8.228e-01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  4.971e+00  2.383e+01  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:  7.504e-01  1.412e-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.688e+00  3.366e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/62230/cmap_HighResolution_318902401_319161601_4FGL_J1258.8-2219_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-06 13:10:41.456201', job_id='62230', GAL2='0.75', fit_tolerance='1e-08', EG2='1.69', EG='1.70', time_epoch_completed='1630959041.46', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.51e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='307' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 62230: <4FGL_J1258.8-2219_daily_bin307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin307 194.717 -22.3257 318902401 319161601 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 :                                   847.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

