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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin522
RA = 194.717, Dec = -22.3257
tmin = 374630401, tmax = 374889601
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='64806', job_status='RUN', time_executed='2021-09-06 13:05:48.416039', time_epoch_executed='1630958748.42' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64806

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64806/ft1_4FGL_J1258.8-2219_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64806/ft1_4FGL_J1258.8-2219_daily_bin522.fits outfile=/scratch/kocevski/64806/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin522.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=374630401.0 tmax=374889601.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 4.61
user 4.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/64806/ltcube_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.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/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits
.....................!
real 16.23
user 15.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/64806/ltcube_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.fits outfile=/scratch/kocevski/64806/expmap_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.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/64806/ltcube_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.fits
.....................!
real 190.79
user 185.40
sys 4.93

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/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits scfile=/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits outfile=/scratch/kocevski/64806/cmap_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits scfile=/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits outfile=/scratch/kocevski/64806/cmap_HighResolution_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/64806/ft2_4FGL_J1258.8-2219_daily_bin522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64806/Model_4FGL_J1258.8-2219_daily_bin522.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/64806/ft1_filtered_4FGL_J1258.8-2219_daily_bin522.fits.....................!
real 138.69
user 137.07
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13210E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36209E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .71413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.552       1.0000         .10000E-03   10000.    
    13 'norm      '    14.086       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0850       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4157       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6528       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4392       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.558       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1637       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=   8765.621     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3298 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    28.878        .90712E-02** at limit **
   2  Prefactor     .10001E-03    174.26        .90712E-02** at limit **
   3  Prefactor     .10000E-03    6.7939        .90712E-02** at limit **
   4  Prefactor     .10004E-03    16.398        .90712E-02** at limit **
   5  Prefactor     16.598        19.836        .24572E-02   -.89057E-03
   6  Prefactor     .10000E-03    2.4614        .90712E-02** at limit **
   7  Prefactor     11.790        3.0925        .29169E-02   -.33747E-03
   8  Prefactor     23.541        15.875        .20640E-02    .56039E-04
   9  Prefactor     .10001E-03    7.0468        .98076E-01** at limit **
  10  norm          .71417        1.1649        .12116E-01    .20582E-02
  11  Prefactor     .10005E-03    24.676        .90712E-02** at limit **
  12  norm          14.553        10.971        .26249E-02    .10147E-02
  13  norm          14.086        6.8875        .26680E-02   -.13597E-02
  14  Prefactor     7.0845        6.0218        .37677E-02   -.26369E-02
  15  norm          4.4148        5.6075        .47912E-02   -.19816E-02
  16  norm          3.6527        2.2695        .52840E-02    .11116E-04
  17  norm          3.7164        9.3977        .52368E-02    .27265E-03
  18  Prefactor     .10000E-03    2.8058        .90712E-02** at limit **
  19  Prefactor     11.210        22.616        .29911E-02   -.88171E-04
  20  Prefactor     .10001E-03    23.258        .90712E-02** at limit **
  21  Prefactor     .10003E-03    16.218        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.3673        .90712E-02** at limit **
  23  Prefactor     3.4362        10.318        .54525E-02    .38377E-03
  24  norm          .10000E-03    3.4158        .90712E-02** at limit **
  25  norm          11.557        13.001        .29459E-02   -.30028E-03
  26  Normalizat    1.0071        .26299        .94669E-01    .74505E-04
  27  Prefactor     1.1638        .11992        .35551E-01    .14468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 16.5977
  Prefactor  = 0.0001
  Prefactor  = 11.7895
  Prefactor  = 23.5409
  Prefactor  = 0.000100014
  norm       = 0.714169
  Prefactor  = 0.000100054
  norm       = 14.5531
  norm       = 14.0859
  Prefactor  = 7.08451
  norm       = 4.41475
  norm       = 3.65273
  norm       = 3.7164
  Prefactor  = 0.0001
  Prefactor  = 11.2098
  Prefactor  = 0.00010001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 3.43619
  norm       = 0.0001
  norm       = 11.5574
  Normalizat = 1.00713
  Prefactor  = 1.16377
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.621     FROM HESSE     STATUS=OK           488 CALLS     3786 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    28.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    177.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    16.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.598        19.832        .98288E-04   -1.4893    
   6  Prefactor     .10000E-03    2.4706        .14341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.790        3.0831        .81798E-04   -1.5021    
   8  Prefactor     23.541        15.883        .82561E-04   -1.4737    
   9  Prefactor     .10001E-03    52.085        .47838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71417        1.1462        .11952E-03   -1.5539    
  11  Prefactor     .10005E-03    24.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.553        10.965        .52498E-03   -1.4945    
  13  norm          14.086        6.8779        .10672E-03   -1.4957    
  14  Prefactor     7.0845        6.0091        .15071E-03   -1.5176    
  15  norm          4.4148        5.5944        .19165E-03   -1.5288    
  16  norm          3.6527        2.2703        .10800E-03   -1.5326    
  17  norm          3.7164        9.3680        .20947E-03   -1.5322    
  18  Prefactor     .10000E-03    2.8103        .15315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.210        22.664        .11964E-03   -1.5038    
  20  Prefactor     .10001E-03    23.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    16.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4362        10.247        .21810E-03   -1.5337    
  24  norm          .10000E-03    3.4560        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.557        13.002        .58919E-03   -1.5028    
  26  Normalizat    1.0071        .29737        .41933E-03   -.92792    
  27  Prefactor     1.1638        .13812        .18664E-03   -.87454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86248e-08
Minuit parameter uncertainties:
  1  0.00181254
  2  0.00250695
  3  3.42202e-07
  4  0.00168912
  5  19.8398
  6  1.184e-05
  7  3.08312
  8  15.8859
  9  0.00171759
  10  1.14623
  11  0.0023117
  12  10.9666
  13  6.87827
  14  6.00958
  15  5.59506
  16  2.27034
  17  9.37173
  18  1.93523e-06
  19  22.6809
  20  0.000955726
  21  0.00149705
  22  1.87878e-05
  23  10.2523
  24  3.64586e-06
  25  13.0055
  26  0.29786
  27  0.138159
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.409e+01  6.878e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.164e+00  1.382e-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.007e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.67
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 1.96e-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) = 8763.89319833
delta logL = 1.72800896912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8763.81060662
delta logL = 1.81060067551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.169       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1431       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=   8763.811     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.169        7.6331        .24165E-02    .34985E-03
   2  alpha         1.5970        .30286        .28584       -.56886E-04
   3  Normalizat    1.0710        .24744        .92193E-01    .34414E-04
   4  Prefactor     1.1431        .11774        .36140E-01   -.42814E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1691
  alpha      = 1.597
  Normalizat = 1.07097
  Prefactor  = 1.14308
 **********
 **   18 **HESSE 
 **********

 FCN=   8763.811     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.169        7.8230        .96660E-04   -1.4879    
   2  alpha         1.5970        .33722        .11600E-01   -.36956    
   3  Normalizat    1.0710        .28489        .40837E-03   -.90689    
   4  Prefactor     1.1431        .13615        .18800E-03   -.88101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08585e-11
Minuit parameter uncertainties:
  1  7.82348
  2  0.33841
  3  0.285297
  4  0.136188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64806': 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) = 8763.81060661
delta logL = 1.81060068388

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.717e+01  7.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  1.597e+00  3.384e-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:  1.143e+00  1.362e-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.071e+00  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.47
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 1.60 +/- 0.34
Photon Flux (Free Index): 6.67e-08 +/- 3.68e-08
Energy Flux (Free Index): 8.57e-05 +/- 5.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/64806/cmap_HighResolution_374630401_374889601_4FGL_J1258.8-2219_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='8.57e-05', photon_flux_error='5.54e-08', dlogl='1.81e+00', energy_flux='4.02e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-06 13:21:12.273827', photon_index_error2='0.34', photon_index2='1.60', ts='10.67', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='5.52e-05', EG='1.01', time_epoch_completed='1630959672.27', return_code='0', job_id='64806', GAL2='1.14', EG2='1.07', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='3.68e-08', ts2='14.47', photon_index='2.33' WHERE bin_id='522' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 64806: <4FGL_J1258.8-2219_daily_bin522> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin522> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 13:05:36 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:05:37 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:05:37 2021
Terminated at Mon Sep  6 13:21:13 2021
Results reported at Mon Sep  6 13:21:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin522 194.717 -22.3257 374630401 374889601 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 :                                   917.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

