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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin995
RA = 194.717, Dec = -22.3257
tmin = 497232001, tmax = 497491201
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='68098', job_status='RUN', time_executed='2021-09-06 13:19:11.741600', time_epoch_executed='1630959551.74' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68098/ft1_4FGL_J1258.8-2219_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68098/ft1_4FGL_J1258.8-2219_daily_bin995.fits outfile=/scratch/kocevski/68098/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin995.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.93
user 6.43
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.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/68098/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.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.71
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/68098/ltcube_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.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/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits
.....................!
real 13.46
user 11.94
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/68098/ltcube_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.fits outfile=/scratch/kocevski/68098/expmap_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.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/68098/ltcube_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.fits
.....................!
real 193.79
user 184.44
sys 6.22

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/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits outfile=/scratch/kocevski/68098/cmap_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.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.93
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits outfile=/scratch/kocevski/68098/cmap_HighResolution_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/68098/ft2_4FGL_J1258.8-2219_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68098/Model_4FGL_J1258.8-2219_daily_bin995.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/68098/ft1_filtered_4FGL_J1258.8-2219_daily_bin995.fits.....................!
real 71.87
user 70.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3098       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5783       1.0000         .10000E-03   10000.    
    12 'norm      '    .11566E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.4365       1.0000         .10000E-03   10000.    
    17 'norm      '    18.106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.553       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6585       1.0000         .10000E-03   10000.    
    24 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6843       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0066       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=   4094.769     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3312 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.977       -.91559E-06** at limit **
   2  Prefactor     .10000E-03    27.910        .37304E-07** at limit **
   3  Prefactor     .10000E-03    44.886       -.63505E-05** at limit **
   4  Prefactor     15.230        63.277       -.29831E-05   -.10657E-03
   5  Prefactor     .10000E-03    20.254        .77877E-08** at limit **
   6  Prefactor     .10000E-03    4.0828       -.49817E-07** at limit **
   7  Prefactor     3.1772        2.3490       -.17235E-06   -.65096E-04
   8  Prefactor     20.761        30.562        .12300E-06    .90434E-04
   9  Prefactor     3.3137        17.282        .13498E-04   -.60998E-04
  10  norm          .10000E-03    .87994        .26362E-07** at limit **
  11  Prefactor     1.0155        1700.7       -.61050E-04   -.11597E-06
  12  norm          .10000E-03    21.115        .70416E-06** at limit **
  13  norm          .10000E-03    5.7842       -.24579E-05** at limit **
  14  Prefactor     .10000E-03    4.0371       -.76060E-06** at limit **
  15  norm          .10000E-03    3.8932        .15740E-06** at limit **
  16  norm          9.4394        5.7987        .55251E-06    .27776E-04
  17  norm          18.090        14.301        .49966E-07   -.70282E-05
  18  Prefactor     16.621        18.465        .13017E-06    .31790E-05
  19  Prefactor     .10000E-03    23.164       -.83740E-07** at limit **
  20  Prefactor     32.585        37.590        .36546E-05    .21534E-04
  21  Prefactor     .10000E-03    31.123        .53757E-06** at limit **
  22  Prefactor     .10000E-03    10.579        .30076E-06** at limit **
  23  Prefactor     1.6578        106.72       -.84309E-05   -.95568E-05
  24  norm          .10000E-03    4.1373        .84787E-08** at limit **
  25  norm          .10000E-03    13.923        .13368E-07** at limit **
  26  Normalizat    1.6841        .38825       -.50181E-05    .14727E-03
  27  Prefactor     1.0066        .17433        .17440E-05    .11371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17717
  Prefactor  = 20.7607
  Prefactor  = 3.31365
  norm       = 0.0001
  Prefactor  = 1.01549
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.43944
  norm       = 18.0897
  Prefactor  = 16.6209
  Prefactor  = 0.0001
  Prefactor  = 32.5852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65783
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.6841
  Prefactor  = 1.00662
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.769     FROM HESSE     STATUS=OK           482 CALLS     3794 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.230        64.073        .10325E-03   -1.4927    
   5  Prefactor     .10000E-03    20.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0874        .12628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1772        2.3530        .82148E-04   -1.5351    
   8  Prefactor     20.761        30.634        .88027E-04   -1.4796    
   9  Prefactor     3.3137        17.436        .11126E-02   -1.5344    
  10  norm          .10000E-03    .90729        .11710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0155        1874.7        .33814E-02   -1.5506    
  12  norm          .10000E-03    21.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7694        .14922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0487        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9074        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.4394        5.8182        .58059E-03   -1.5093    
  17  norm          18.090        14.302        .94127E-04   -1.4857    
  18  Prefactor     16.621        18.468        .98243E-04   -1.4892    
  19  Prefactor     .10000E-03    23.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.585        35.403        .70230E-04   -1.4566    
  21  Prefactor     .10000E-03    31.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6578        93.974        .32764E-03   -1.5450    
  24  norm          .10000E-03    4.1493        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6841        .45111        .36807E-03   -.72729    
  27  Prefactor     1.0066        .20444        .20803E-03   -.92509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76966e-10
Minuit parameter uncertainties:
  1  0.000140722
  2  7.91063e-05
  3  0.000109626
  4  62.5922
  5  1.93957e-05
  6  9.03897e-06
  7  2.35307
  8  30.6568
  9  15.2088
  10  4.7759e-06
  11  90.2494
  12  0.000142173
  13  7.6758e-05
  14  2.45295e-05
  15  1.88963e-06
  16  5.81855
  17  14.305
  18  18.4745
  19  8.1422e-05
  20  35.4259
  21  1.27337e-06
  22  1.07072e-05
  23  25.004
  24  1.83018e-06
  25  1.30902e-07
  26  0.452215
  27  0.204599
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  7.676e-05  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.007e+00  2.046e-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.684e+00  4.522e-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.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68098/likelihoodResults_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.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) = 4094.76933429
delta logL = -0.000825220742627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4094.76851218
delta logL = -3.11264147967e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2912       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       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=   4094.769     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      263 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.247        .57360E-01** at limit **
   2  alpha         1.5004        4.0328        .50000       -.30582E-07
   3  Normalizat    1.6841        .17688E-01    .36808E-03    .21945E-04
   4  Prefactor     1.0066        .80715E-02    .20803E-03    .45277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50041
  Normalizat = 1.68409
  Prefactor  = 1.00663
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.769     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    619.66        .34237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5004        3.6455        .50000       -.41134    
   3  Normalizat    1.6841        .56726E-01    .14723E-04   -.72729    
   4  Prefactor     1.0066        .25888E-01    .83212E-05   -.92509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2054e-10
Minuit parameter uncertainties:
  1  3.43823e-05
  2  885.76
  3  0.0567283
  4  0.0258886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68098': 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) = 4094.76850286
delta logL = 6.21292065262e-06

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  3.438e-05  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  1.500e+00  8.858e+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.007e+00  2.589e-02  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.684e+00  5.673e-02  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/68098/cmap_HighResolution_497232001_497491201_4FGL_J1258.8-2219_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-05', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-06 13:30:21.964672', job_id='68098', GAL2='1.01', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1630960221.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='995' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 68098: <4FGL_J1258.8-2219_daily_bin995> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin995> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:16:09 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:16:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:16:10 2021
Terminated at Mon Sep  6 13:30:23 2021
Results reported at Mon Sep  6 13:30:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin995 194.717 -22.3257 497232001 497491201 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

