/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 236 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_bin329
RA = 194.717, Dec = -22.3257
tmin = 324604801, tmax = 324864001
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='62262', job_status='RUN', time_executed='2021-09-06 12:59:53.401929', time_epoch_executed='1630958393.4' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62262/ft1_4FGL_J1258.8-2219_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62262/ft1_4FGL_J1258.8-2219_daily_bin329.fits outfile=/scratch/kocevski/62262/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin329.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=324604801.0 tmax=324864001.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.51
user 9.17
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.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/62262/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin329.fits evtable="EVENTS" outfile="/scratch/kocevski/62262/ft1_filtered_4FGL_J1258.8-2219_daily_bin329.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62262/ft1_filtered_4FGL_J1258.8-2219_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/62262/ltcube_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.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/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits
.....................!
real 11.66
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62262/ft1_filtered_4FGL_J1258.8-2219_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/62262/ltcube_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.fits outfile=/scratch/kocevski/62262/expmap_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.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/62262/ltcube_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.fits
.....................!
real 190.70
user 185.27
sys 5.06

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/62262/ft1_filtered_4FGL_J1258.8-2219_daily_bin329.fits scfile=/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits outfile=/scratch/kocevski/62262/cmap_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62262/ft1_filtered_4FGL_J1258.8-2219_daily_bin329.fits scfile=/scratch/kocevski/62262/ft2_4FGL_J1258.8-2219_daily_bin329.fits outfile=/scratch/kocevski/62262/cmap_HighResolution_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2160       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6730       1.0000         .10000E-03   10000.    
    13 'norm      '    25.526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.476       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7616       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6928       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79233       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=   3876.291     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3244 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.348       -.70718E-06** at limit **
   2  Prefactor     91.020        97.778       -.34759E-06   -.43716E-04
   3  Prefactor     .10000E-03    16.211        .39929E-07** at limit **
   4  Prefactor     .10001E-03    94.990       -.16938E-05** at limit **
   5  Prefactor     33.761        38.966        .10691E-06   -.14983E-04
   6  Prefactor     10.526        13.589        .92925E-07   -.42877E-04
   7  Prefactor     11.095        5.2323       -.69565E-07   -.28688E-03
   8  Prefactor     .10000E-03    8.6922        .24885E-08** at limit **
   9  Prefactor     4.2156        15.509        .34614E-06   -.66117E-05
  10  norm          4.6690        2.0122        .24178E-07   -.19368E-04
  11  Prefactor     .10000E-03    51.443        .70366E-06** at limit **
  12  norm          5.6727        11.822        .43383E-05   -.54335E-04
  13  norm          25.522        11.203       -.40749E-07   -.17117E-04
  14  Prefactor     .10000E-03    3.9770        .10419E-07** at limit **
  15  norm          .10000E-03    3.5143        .30699E-07** at limit **
  16  norm          .10000E-03    1.2560        .87112E-08** at limit **
  17  norm          16.475        13.770        .86047E-07   -.11645E-05
  18  Prefactor     23.685        20.062        .48029E-07   -.54917E-05
  19  Prefactor     .10000E-03    23.667        .12327E-06** at limit **
  20  Prefactor     1.7631        16.399        .18557E-05   -.88911E-05
  21  Prefactor     45.309        34.140        .45383E-07    .98231E-05
  22  Prefactor     .10000E-03    12.481       -.18427E-06** at limit **
  23  Prefactor     .10000E-03    5.8345        .16057E-07** at limit **
  24  norm          .10000E-03    11.661        .55758E-06** at limit **
  25  norm          .10000E-03    69.452        .13768E-05** at limit **
  26  Normalizat    1.6929        .36649       -.56354E-06   -.13757E-04
  27  Prefactor     .79230        .16422       -.39055E-06   -.25622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 91.0202
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 33.7613
  Prefactor  = 10.5256
  Prefactor  = 11.0947
  Prefactor  = 0.0001
  Prefactor  = 4.21564
  norm       = 4.66895
  Prefactor  = 0.000100001
  norm       = 5.67268
  norm       = 25.5225
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.4753
  Prefactor  = 23.6845
  Prefactor  = 0.0001
  Prefactor  = 1.76306
  Prefactor  = 45.3094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Normalizat = 1.69285
  Prefactor  = 0.792299
 **********
 **   18 **HESSE 
 **********

 FCN=   3876.291     FROM HESSE     STATUS=OK           486 CALLS     3730 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     91.020        97.820        .42116E-04   -1.3797    
   3  Prefactor     .10000E-03    16.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    95.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.761        38.967        .68964E-04   -1.4545    
   6  Prefactor     10.526        13.609        .12350E-03   -1.5059    
   7  Prefactor     11.095        5.2416        .90319E-04   -1.5042    
   8  Prefactor     .10000E-03    8.7040        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2156        15.494        .19626E-03   -1.5297    
  10  norm          4.6690        2.0122        .55579E-04   -1.5276    
  11  Prefactor     .10000E-03    51.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6727        11.835        .84325E-03   -1.5232    
  13  norm          25.522        11.195        .79289E-04   -1.4697    
  14  Prefactor     .10000E-03    3.9836        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5248        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2611        .68140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.475        13.772        .98673E-04   -1.4896    
  18  Prefactor     23.685        20.148        .82307E-04   -1.4734    
  19  Prefactor     .10000E-03    23.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7631        16.381        .31568E-03   -1.5442    
  21  Prefactor     45.309        34.152        .59565E-04   -1.4361    
  22  Prefactor     .10000E-03    12.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8531        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    69.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6929        .43082        .34138E-03   -.72494    
  27  Prefactor     .79230        .19244        .21590E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20389e-10
Minuit parameter uncertainties:
  1  0.000430894
  2  97.9942
  3  3.18043e-05
  4  0.00146844
  5  38.9966
  6  13.6127
  7  5.24178
  8  4.91774e-07
  9  15.5088
  10  2.01221
  11  0.000504242
  12  11.8398
  13  11.1963
  14  1.30315e-07
  15  1.62302e-06
  16  6.36333e-08
  17  13.7743
  18  20.1533
  19  3.26263e-05
  20  10.7518
  21  34.167
  22  8.63113e-05
  23  2.49928e-06
  24  6.80578e-05
  25  0.000902031
  26  0.431777
  27  0.192603
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.552e+01  1.120e+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:  7.923e-01  1.926e-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.693e+00  4.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.50
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.06e-07 +/- 9.02e-08
Energy Flux (Fixed Index): 7.28e-05 +/- 3.20e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3876.29026225
delta logL = 0.000875965611158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3876.28984712
delta logL = 0.00129109582758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.882       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3098       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79139       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=   3876.290     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      256 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.883        13.515        .78742E-04   -.38687E-03
   2  alpha         2.3098        .43164        .81466E-02   -.79182E-04
   3  Normalizat    1.6960        .42157        .34115E-03    .24060E-04
   4  Prefactor     .79139        .19136        .21601E-03    .42735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.8825
  alpha      = 2.30978
  Normalizat = 1.696
  Prefactor  = 0.791391
 **********
 **   18 **HESSE 
 **********

 FCN=   3876.290     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.883        13.297        .15748E-04   -1.4690    
   2  alpha         2.3098        .42455        .32586E-03   -.76163E-01
   3  Normalizat    1.6960        .42178        .13646E-04   -.72410    
   4  Prefactor     .79139        .19148        .86405E-05   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65746e-10
Minuit parameter uncertainties:
  1  13.2986
  2  0.426627
  3  0.422677
  4  0.191641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62262': 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) = 3876.28984712
delta logL = 0.00129109651925

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.588e+01  1.330e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.310e+00  4.266e-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.914e-01  1.916e-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.696e+00  4.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 2.31 +/- 0.43
Photon Flux (Free Index): 2.03e-07 +/- 1.04e-07
Energy Flux (Free Index): 7.37e-05 +/- 3.62e-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/62262/cmap_HighResolution_324604801_324864001_4FGL_J1258.8-2219_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-07', energy_flux2='7.37e-05', photon_flux_error='9.02e-08', dlogl='1.29e-03', energy_flux='7.28e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2021-09-06 13:10:10.208193', photon_index_error2='0.43', photon_index2='2.31', ts='10.50', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='1.69', time_epoch_completed='1630959010.21', return_code='0', job_id='62262', GAL2='0.79', EG2='1.70', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='1.04e-07', ts2='10.45', photon_index='2.33' WHERE bin_id='329' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 62262: <4FGL_J1258.8-2219_daily_bin329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin329 194.717 -22.3257 324604801 324864001 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

